Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = mktmpio.LoadConfig()
Config stores the shared mktmpio config used by all the cli commands
View Source
var ConfigCommand = cli.Command{ Name: "config", Usage: "view and modify your mktmpio config", Subcommands: []cli.Command{ { Name: "get", Usage: "view config values", ArgsUsage: "[NAMES...]", Action: getConfigs, }, { Name: "set", Usage: "set config values", ArgsUsage: "<NAME> <VALUE>..., to unset a value use an empty string as the value", Action: setConfigs, Before: setCheckArgs, }, }, }
ConfigCommand is the definition for the 'mktmpio config' command
View Source
var LegalCommand = cli.Command{ Name: "legal", Usage: "display licensing, copyright, and warranty notices", Action: licenseAction, Flags: []cli.Flag{ cli.BoolFlag{Name: "verbose, v"}, }, }
LegalCommand defines the 'mktmpio config' command
View Source
var ListCommand = cli.Command{ Name: "ls", Usage: "list and inspect running database servers", Action: lsAction, Flags: []cli.Flag{ cli.BoolFlag{Name: "long, l"}, }, Before: lsCheckArgs, }
ListCommand defines the 'mktmpio shell' command
View Source
var RemoveCommand = cli.Command{
Name: "rm",
Usage: "shutdown running database servers",
Action: rmAction,
Before: rmCheckArgs,
ArgsUsage: "<ID...>",
}
RemoveCommand defines the 'mktmpio shell' command
View Source
var ShellCommand = cli.Command{
Name: "shell",
Usage: "create a new server and attach a shell session to it",
Action: shellAction,
Before: shellCheckArgs,
ArgsUsage: "<type>",
}
ShellCommand defines the 'mktmpio shell' command
Functions ¶
func PopulateConfig ¶
PopulateConfig populates the shared config used by all the cli commands.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.