github.com/taubyte/tau-cli@v0.1.13-0.20240326000942-487f0d57edfc/cli/common/base_commands.go (about) 1 package common 2 3 import ( 4 "github.com/urfave/cli/v2" 5 ) 6 7 func newBaseCommand(name string) *cli.Command { 8 return &cli.Command{ 9 Name: name, 10 Subcommands: make([]*cli.Command, 0), 11 } 12 } 13 14 var ( 15 _new = newBaseCommand("new") 16 _edit = newBaseCommand("edit") 17 _delete = newBaseCommand("delete") 18 _query = newBaseCommand("query") 19 _list = newBaseCommand("list") 20 _select = newBaseCommand("select") 21 _clone = newBaseCommand("clone") 22 _push = newBaseCommand("push") 23 _pull = newBaseCommand("pull") 24 _checkout = newBaseCommand("checkout") 25 _import = newBaseCommand("import") 26 )