cmds

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2016 License: GPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CommandUsage = []Command{
	{"start", "Start the application"},
	{"stop", "Stop the application"},
	{"restart", "Restart the application"},
	{"status", "Show application status"},
}

Commands lists the top level commands and their short usage

View Source
var Commands = make(map[string]Command)

Functions

This section is empty.

Types

type CWCtl

type CWCtl struct {
	*Cli.Cli
	// contains filtered or unexported fields
}

func Init

func Init() *CWCtl

func (*CWCtl) CmdBuild

func (cli *CWCtl) CmdBuild(args ...string) (err error)

func (*CWCtl) CmdDump

func (cli *CWCtl) CmdDump(args ...string) error

func (*CWCtl) CmdInfo

func (cli *CWCtl) CmdInfo(args ...string) error

func (*CWCtl) CmdInstall

func (cli *CWCtl) CmdInstall(args ...string) error

func (*CWCtl) CmdPwgen

func (cli *CWCtl) CmdPwgen(args ...string) error

Utility command to generate a random password

func (*CWCtl) CmdRestart

func (cli *CWCtl) CmdRestart(args ...string) error

func (*CWCtl) CmdRestore

func (cli *CWCtl) CmdRestore(args ...string) error

func (*CWCtl) CmdRun

func (cli *CWCtl) CmdRun(args ...string) error

func (*CWCtl) CmdSetenv

func (cli *CWCtl) CmdSetenv(args ...string) error

func (*CWCtl) CmdSh

func (cli *CWCtl) CmdSh(args ...string) error

func (*CWCtl) CmdStart

func (cli *CWCtl) CmdStart(args ...string) error

func (*CWCtl) CmdStatus

func (cli *CWCtl) CmdStatus(args ...string) error

func (*CWCtl) CmdStop

func (cli *CWCtl) CmdStop(args ...string) error

func (*CWCtl) Command

func (cli *CWCtl) Command(name string) func(...string) error

func (*CWCtl) Subcmd

func (cli *CWCtl) Subcmd(name string, synopses ...string) *flag.FlagSet

type Command

type Command struct {
	Name        string
	Description string
}

Command is the struct containing the command name and description

Jump to

Keyboard shortcuts

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