Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Add = cli.Command{ Name: "add", Aliases: []string{"a"}, Usage: "Add a package", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "force", Aliases: []string{"f"}, Usage: "Overwrite existing package without prompt", Destination: &forceFlag, }, &cli.BoolFlag{ Name: "local", Aliases: []string{"l"}, Usage: "local mode", Destination: &localFlag, }, }, Before: localOrToken, Action: doAdd, }
View Source
var Get = cli.Command{ Name: "get", Aliases: []string{"g"}, Usage: "Get package(s)", Action: doGet, }
View Source
var List = cli.Command{ Name: "list", Aliases: []string{"ls", "l"}, Usage: "List local packages", Action: doList, }
View Source
var Remove = cli.Command{ Name: "remove", Aliases: []string{"rm"}, Usage: "Remove package(s)", Before: localOrToken, Action: doRemove, }
View Source
var Search = cli.Command{ Name: "search", Aliases: []string{"s"}, Usage: "Search packages", Action: doSearch, }
View Source
var Server = cli.Command{ Name: "server", Aliases: []string{"web"}, Usage: "Start the gpm server", Flags: []cli.Flag{ &cli.IntFlag{ Name: "port", Aliases: []string{"p"}, Usage: "Port to run the gpm server on", Value: 3333, EnvVars: []string{"GPM_PORT"}, Destination: &portFlag, }, }, Action: doServer, }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.