diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/cli/cli.go | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go deleted file mode 100644 index 29a10ff..0000000 --- a/pkg/cli/cli.go +++ /dev/null @@ -1,25 +0,0 @@ -package cli - -import ( - "context" - "flag" - - "github.com/eugenetriguba/bolt/internal/commands" - "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.VersionCmd{}, "") - subcommands.Register(&commands.NewCmd{}, "") - subcommands.Register(&commands.UpCmd{}, "") - subcommands.Register(&commands.DownCmd{}, "") - subcommands.Register(&commands.StatusCmd{}, "") - - flag.Parse() - ctx := context.Background() - return int(subcommands.Execute(ctx)) -} |