cmd

package
v0.0.0-...-e6abb49 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2015 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdGet = &Command{
	UsageLine: "get package",
	Short:     "Extended get go, support for custom git address",
	Long: `
hg get github.com/tools/godep
hg get hbox.io/hbox/hbox-api
hg get hbox.io/hbox/hbox-api hbox.io/hbox/api
`,
}
View Source
var CmdRun = &Command{
	UsageLine: "run [appname]",
	Short:     "run the app and start a Web server for development",
	Long: `
Run command will supervise the file system of the hgoo project using inotify,
it will recompile and restart the app after any modifications.
`,
}
View Source
var CmdVersion = &Command{
	UsageLine: "version",
	Short:     "show the hg, hgoo and Go version",
	Long: `
show the hg, hgoo and Go version
hg version
    hg   :0.0.1
    hgoo :0.0.1
    Go    :go version go1.5.1 linux/amd64
`,
}

Functions

This section is empty.

Types

type Command

type Command struct {
	Run         func(cmd *Command, args []string) int
	UsageLine   string
	Short       template.HTML
	Long        template.HTML
	Flag        flag.FlagSet
	CustomFlags bool
}

func (*Command) Name

func (cmd *Command) Name() string

func (*Command) Runnable

func (c *Command) Runnable() bool

func (*Command) Usage

func (c *Command) Usage()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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