diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2024-02-07 21:45:02 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2024-02-07 21:45:02 -0500 |
| commit | ab25e363ed49d234f347d78b51c5dc07f6eebfa7 (patch) | |
| tree | 67f975faa2f9305ba0d2b89f649106c088047456 /pkg | |
| parent | Fix return value for console outputter output and error funcs (diff) | |
| download | cli-ab25e363ed49d234f347d78b51c5dc07f6eebfa7.zip | |
Move pkg/cli to internal/cli
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)) -} |