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

package cli
import "github.com/urfave/cli/v2"
var (
commands = []*cli.Command{
{
Name: "ls",
Usage: "List installed versions",
UsageText: "j ls",
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,
},
{
Name: "use",
Usage: "Switch to specified version",
UsageText: "j use <version>",
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,
},
}
)