Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdBin = cli.Command{ Name: "bin", Usage: "download and link dependencies and build executable binary", Description: `Command bin downloads and links dependencies according to gopmfile, and build executable binary to work directory gopm bin <import path>@[<tag|commit|branch>:<value>] gopm bin <package name>@[<tag|commit|branch>:<value>] Can only specify one each time, and only works for projects that contain main package`, Action: runBin, Flags: []cli.Flag{ cli.BoolFlag{"dir, d", "build binary to given directory(second argument)"}, cli.BoolFlag{"update, u", "update pakcage(s) and dependencies if any"}, cli.BoolFlag{"verbose, v", "show process details"}, }, }
View Source
var CmdBuild = cli.Command{ Name: "build", Usage: "link dependencies and go build", Description: `Command build links dependencies according to gopmfile, and execute 'go build' gopm build <go build commands>`, Action: runBuild, Flags: []cli.Flag{ cli.BoolFlag{"verbose, v", "show process details"}, }, }
View Source
var CmdGen = cli.Command{ Name: "gen", Usage: "generate a gopmfile according current Go project", Description: `Command gen gets dependencies and generates a gopmfile gopm gen Make sure you run this command in the root path of a go project.`, Action: runGen, Flags: []cli.Flag{ cli.BoolFlag{"example, e", "check dependencies for example(s)"}, cli.BoolFlag{"verbose, v", "show process details"}, }, }
View Source
var CmdGet = cli.Command{ Name: "get", Usage: "fetch remote package(s) and dependencies to local repository", Description: `Command get fetches a package, and any pakcage that it depents on. If the package has a gopmfile, the fetch process will be driven by that. gopm get gopm get <import path>@[<tag|commit|branch>:<value>] gopm get <package name>@[<tag|commit|branch>:<value>] Can specify one or more: gopm get beego@tag:v0.9.0 github.com/beego/bee If no version specified and package exists in GOPATH, it will be skipped unless user enabled '--remote, -r' option then all the packages go into gopm local repository.`, Action: runGet, Flags: []cli.Flag{ cli.BoolFlag{"gopath, g", "download all pakcages to GOPATH"}, cli.BoolFlag{"update, u", "update pakcage(s) and dependencies if any"}, cli.BoolFlag{"example, e", "download dependencies for example folder"}, cli.BoolFlag{"remote, r", "download all pakcages to gopm local repository"}, cli.BoolFlag{"verbose, v", "show process details"}, }, }
View Source
var CmdInstall = cli.Command{ Name: "install", Usage: "link dependencies and go install", Description: `Command install links dependencies according to gopmfile, and execute 'go install' gopm install gopm install <import path> If no argument is supplied, then gopmfile must be present`, Action: runInstall, Flags: []cli.Flag{ cli.BoolFlag{"pkg, p", "only install non-main packages"}, cli.BoolFlag{"verbose, v", "show process details"}, }, }
View Source
var CmdRun = cli.Command{
Name: "run",
Usage: "link dependencies and go run",
Description: `Command run links dependencies according to gopmfile,
and execute 'go run'
gopm run <go run commands>`,
Action: runRun,
}
View Source
var CmdTest = cli.Command{
Name: "test",
Usage: "link dependencies and go test",
Description: `Command test links dependencies according to gopmfile,
and execute 'go test'
gopm test <go test commands>`,
Action: runTest,
}
View Source
var CmdUpdate = cli.Command{
Name: "update",
Usage: "update self",
Description: `Command bin downloads and links dependencies according to gopmfile,
and build executable binary to work directory
gopm update
Can only specify one each time, and only works for projects that
contains main package`,
Action: runUpdate,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.