Documentation
¶
Index ¶
Constants ¶
View Source
const ( STOP = iota LOCALRUN RUNNING )
View Source
const APP_VER = "0.5.1.1104"
Variables ¶
View Source
var (
AppPath string
)
View Source
var CmdBuild = &Command{
UsageLine: "build",
Short: "build according a gopmfile",
Long: `
build just like go build
`,
}
View Source
var CmdGen = &Command{
UsageLine: "gen [.gopmfile]",
Short: "generate a gopmfile according current go project",
Long: `
generate a gopmfile according current go project
`,
}
View Source
var CmdGet = &Command{
UsageLine: "get [flags] <package(s)>",
Short: "download and install packages and dependencies",
Long: `
Get downloads and installs the packages named by the import paths,
along with their dependencies.
This command works even you haven't installed any version control tool
such as git, hg, etc.
The install flags are:
-d
download without installing package(s).
-u
force to update pakcage(s).
-e
download dependencies for example(s).
The list flags accept a space-separated list of strings.
For more about specifying packages, see 'go help packages'.
`,
}
View Source
var CmdInstall = &Command{
UsageLine: "install",
Short: "install according a gopmfile",
Long: `
install just like go install
`,
}
View Source
var CmdRun = &Command{
UsageLine: "run",
Short: "run according a gopmfile",
Long: `
run just like go run
`,
}
View Source
var CmdSearch = &Command{
UsageLine: "search [keyword]",
Short: "search for package",
Long: `
search packages
The search flags are:
-e
search extactly, you should input an exactly package name as keyword
`,
}
View Source
var CmdServe = &Command{
UsageLine: "serve [:port]",
Short: "serve for package search",
Long: `
serve provide a web service to search packages, download packages
The serve flags are:
-l
only service for localhost ip
`,
}
View Source
var CmdVersion = &Command{
UsageLine: "version",
Short: "show version",
Long: `
show version
`,
}
Functions ¶
Types ¶
type Command ¶
type Command struct { // Run runs the command. // The args are the arguments after the command name. Run func(cmd *Command, args []string) // UsageLine is the one-line usage message. // The first word in the line is taken to be the command name. UsageLine string // Short is the short description shown in the 'go help' output. Short string // Long is the long message shown in the 'go help <this-command>' output. Long string // Flag is a set of flags specific to this command. Flags map[string]bool }
A Command is an implementation of a go command like go build or go fix.
Click to show internal directories.
Click to hide internal directories.