From 640032b8fea8c5fce3fdea1792a0a0a920446b7c Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 20 Oct 2021 17:48:50 +0200 Subject: [PATCH] fix: remove duplicate version command We can use --version/-v instead. --- cli/cli.go | 1 - cli/version.go | 15 --------------- 2 files changed, 16 deletions(-) delete mode 100644 cli/version.go diff --git a/cli/cli.go b/cli/cli.go index 7293f089..ebf156ad 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -60,7 +60,6 @@ func newAbraApp(version, commit string) *cli.App { recipe.RecipeCommand, catalogue.CatalogueCommand, domain.DomainCommand, - VersionCommand, UpgradeCommand, }, Flags: []cli.Flag{ diff --git a/cli/version.go b/cli/version.go deleted file mode 100644 index aff84c44..00000000 --- a/cli/version.go +++ /dev/null @@ -1,15 +0,0 @@ -package cli - -import ( - "github.com/urfave/cli/v2" -) - -// VersionCommand prints the version of abra. -var VersionCommand = &cli.Command{ - Name: "version", - Usage: "Print version", - Action: func(c *cli.Context) error { - cli.VersionPrinter(c) - return nil - }, -}