From 00aa327eb204d504f1e03dbe5a7cdec4af4ec913 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sat, 13 Jan 2024 18:23:48 -0500 Subject: Rework docs, add more output, and tweak tests --- pkg/cli/cli.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkg') 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() -- cgit v1.2.3