prompt

package
v0.11.1-0...-8ab92b3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(cmd *cobra.Command, docker client.CommonAPIClient, output terminal.Outputer) (bool, string, string, string, string, error)

CreateDatabase is used to interactively walk a user through creating a new database. It will return true if the user created a database along with the hostname, database, port, and driver for the database container.

func CreateSite

func CreateSite(home, dir string, output terminal.Outputer) (*config.Site, error)

CreateSite takes the users home directory and the site path and walked the user through adding a site to the config.

func RunApply

func RunApply(cmd *cobra.Command, args []string, force bool, output terminal.Outputer) error

RunApply will prompt a user to run the apply command. It optionally accepts a "force" option that will not prompt the user and run apply regardless.

func VerifyInit

func VerifyInit(cmd *cobra.Command, args []string, home string, output terminal.Outputer) error

VerifyInit is used to verify the init command has been run by checking if a config file exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL