diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/cli/cli.go | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index ba4ae0d..fb9d1f3 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -8,14 +8,15 @@ import ( "github.com/google/subcommands" ) +// Run runs the Bolt CLI and returns the exit code. func Run() int { subcommands.Register(subcommands.HelpCommand(), "") subcommands.Register(subcommands.FlagsCommand(), "") subcommands.Register(subcommands.CommandsCommand(), "") - subcommands.Register(&commands.CreateCmd{}, "") - subcommands.Register(&commands.UpgradeCmd{}, "") - subcommands.Register(&commands.DowngradeCmd{}, "") - subcommands.Register(&commands.ListCmd{}, "") + subcommands.Register(&commands.NewCmd{}, "") + subcommands.Register(&commands.UpCmd{}, "") + subcommands.Register(&commands.DownCmd{}, "") + subcommands.Register(&commands.StatusCmd{}, "") flag.Parse() ctx := context.Background() |