You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
j/cli/commands.go

51 lines
987 B
Go

2 years ago
package cli
import "github.com/urfave/cli/v2"
var (
commands = []*cli.Command{
{
Name: "ls",
Usage: "List installed versions",
2 years ago
UsageText: "j ls",
2 years ago
Action: list,
},
/* {
Name: "ls-all",
Usage: "List All versions",
UsageText: "j ls-all",
Action: listAll,
}, */
{
Name: "ls-remote",
Usage: "List Remote versions",
UsageText: "j ls-remote",
Action: listRemote,
},
{
Name: "install",
Usage: "install versions",
UsageText: "j install <version>",
Action: install,
},
2 years ago
{
Name: "use",
Usage: "Switch to specified version",
2 years ago
UsageText: "j use <version>",
2 years ago
Action: use,
},
{
Name: "uninstall",
Usage: "Uninstall a version",
UsageText: "j uninstall <version>",
Action: uninstall,
},
{
Name: "clean",
Usage: "Remove files from the package download directory",
UsageText: "j clean",
Action: clean,
},
2 years ago
}
)