parent
ba9333a076
commit
f9d94d76de
|
@ -15,8 +15,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var Add = cli.Command{
|
var Add = cli.Command{
|
||||||
Name: "add",
|
Name: "add",
|
||||||
Usage: "Add a package",
|
Aliases: []string{"a"},
|
||||||
|
Usage: "Add a package",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "force",
|
Name: "force",
|
||||||
|
|
|
@ -15,9 +15,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var Get = cli.Command{
|
var Get = cli.Command{
|
||||||
Name: "get",
|
Name: "get",
|
||||||
Usage: "Get package(s)",
|
Aliases: []string{"g"},
|
||||||
Action: doGet,
|
Usage: "Get package(s)",
|
||||||
|
Action: doGet,
|
||||||
}
|
}
|
||||||
|
|
||||||
func doGet(ctx *cli.Context) error {
|
func doGet(ctx *cli.Context) error {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
|
|
||||||
var List = cli.Command{
|
var List = cli.Command{
|
||||||
Name: "list",
|
Name: "list",
|
||||||
Aliases: []string{"l"},
|
Aliases: []string{"ls", "l"},
|
||||||
Usage: "List local packages",
|
Usage: "List local packages",
|
||||||
Action: doList,
|
Action: doList,
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,8 +14,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var Server = cli.Command{
|
var Server = cli.Command{
|
||||||
Name: "server",
|
Name: "server",
|
||||||
Usage: "Start the gpm server",
|
Aliases: []string{"web"},
|
||||||
|
Usage: "Start the gpm server",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.IntFlag{
|
&cli.IntFlag{
|
||||||
Name: "port",
|
Name: "port",
|
||||||
|
|
|
@ -13,8 +13,9 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var Update = cli.Command{
|
var Update = cli.Command{
|
||||||
Name: "update",
|
Name: "update",
|
||||||
Usage: "Update a package",
|
Aliases: []string{"u"},
|
||||||
|
Usage: "Update a package",
|
||||||
Flags: []cli.Flag{
|
Flags: []cli.Flag{
|
||||||
&cli.BoolFlag{
|
&cli.BoolFlag{
|
||||||
Name: "local",
|
Name: "local",
|
||||||
|
|
Loading…
Reference in New Issue