commands

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2016 License: Artistic-2.0 Imports: 13 Imported by: 1

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

func PopulateConfig(c *cli.Context) error

PopulateConfig populates the shared config used by all the cli commands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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