aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-01-13 18:23:48 -0500
committerEugene Triguba <eugenetriguba@gmail.com>2024-01-13 18:23:48 -0500
commit00aa327eb204d504f1e03dbe5a7cdec4af4ec913 (patch)
tree571a5bc5ce52a11e0039f9763c89b9316e7bf9d4 /pkg
parentTweak readme (diff)
downloadcli-00aa327eb204d504f1e03dbe5a7cdec4af4ec913.zip
Rework docs, add more output, and tweak tests
Diffstat (limited to 'pkg')
-rw-r--r--pkg/cli/cli.go9
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()