aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorEugene Triguba <eugenetriguba@gmail.com>2024-03-02 11:07:30 -0500
committerGitHub <noreply@github.com>2024-03-02 11:07:30 -0500
commit571bc9bf2efa841b29bf036f4d307664bfbe155d (patch)
tree41fb3a459db99d1f0ec2ed2e00d4ca580a5d0c46 /pkg
parentUpdate readme (diff)
parentRemove Latest() from migration fs repo in favor of using List on service (diff)
downloadcli-571bc9bf2efa841b29bf036f4d307664bfbe155d.zip
Merge pull request #1 from eugenetriguba/0.3.0
Diffstat (limited to 'pkg')
-rw-r--r--pkg/cli/cli.go25
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))
-}