From dfdd87501549a5ca66573757be6873cd7cb34173 Mon Sep 17 00:00:00 2001 From: abdfnx Date: Wed, 4 Aug 2021 14:21:46 +0300 Subject: [PATCH] =?UTF-8?q?move=20`browse`=20command=20to=20`repo=20browse?= =?UTF-8?q?`,=20publish=20`v5.3.72`=20=F0=9F=93=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++++++++++++++ pkg/root/root.go | 3 --- tools/browse/browse.go | 12 ------------ 3 files changed, 14 insertions(+), 15 deletions(-) delete mode 100644 tools/browse/browse.go diff --git a/CHANGELOG.md b/CHANGELOG.md index d3d48fed..9b52d345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ --- +## [[v5.3.72] 2021-08-04](#v5372-2021-08-04) + +### Added + +- Add `repo browse` command. + +### Changed + +- Move `browse` command to `repo browse`. + +### Fixed + +Nothing. + ## [[v5.3.71] 2021-07-03](#v5371-2021-07-03) ### Added diff --git a/pkg/root/root.go b/pkg/root/root.go index a46d60ff..d15ab5f3 100644 --- a/pkg/root/root.go +++ b/pkg/root/root.go @@ -26,7 +26,6 @@ import ( authx "github.com/secman-team/secman/tools/auth" configx "github.com/secman-team/secman/tools/config" repox "github.com/secman-team/secman/tools/repo" - browsex "github.com/secman-team/secman/tools/browse" checker "github.com/secman-team/version-checker" "github.com/secman-team/shell" @@ -193,7 +192,6 @@ one group or all sites that contain a certain word in the group or name.`, repoCmd = repox.Repo(factory.New()) authCmd = authx.Auth(factory.New()) configCmd = configx.Config(factory.New()) - browseCmd = browsex.Browse(factory.New()) ) type Options struct { @@ -278,7 +276,6 @@ func NewCmdRoot(f *cmdutil.Factory, version string, versionDate string) *cobra.C cmd.AddCommand(uninstallCmd) cmd.AddCommand(syncCmd) cmd.AddCommand(openCmd) - cmd.AddCommand(browseCmd) cmdutil.DisableAuthCheck(cmd) diff --git a/tools/browse/browse.go b/tools/browse/browse.go deleted file mode 100644 index cedaaa44..00000000 --- a/tools/browse/browse.go +++ /dev/null @@ -1,12 +0,0 @@ -package browsex - -import ( - bCmd "github.com/secman-team/gh-api/pkg/cmd/browse" - "github.com/secman-team/gh-api/pkg/cmdutil" - "github.com/spf13/cobra" -) - -func Browse(f *cmdutil.Factory) *cobra.Command { - cmd := bCmd.NewCmdBrowse(f, nil) - return cmd -}