-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.go
44 lines (42 loc) · 923 Bytes
/
commands.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package cli
import "github.com/urfave/cli"
var (
commands = []cli.Command{
{
Name: "ls",
Usage: "List installed versions",
UsageText: "g ls",
Action: list,
},
{
Name: "ls-remote",
Usage: "List remote versions available for install",
UsageText: "g ls-remote [stable|archived|unstable]",
Action: listRemote,
},
{
Name: "use",
Usage: "Switch to specified version",
UsageText: "g use <version>",
Action: use,
},
{
Name: "install",
Usage: "Download and install a version",
UsageText: "g install <version>",
Action: install,
},
{
Name: "uninstall",
Usage: "Uninstall a version",
UsageText: "g uninstall <version>",
Action: uninstall,
},
{
Name: "clean",
Usage: "Remove files from the package download directory",
UsageText: "g clean",
Action: clean,
},
}
)