From 4c5c1e30514225ac82eda4c3bbe4543d0ea0215f Mon Sep 17 00:00:00 2001 From: Austin Abro <37223396+AustinAbro321@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:42:28 -0500 Subject: [PATCH] chore: remove deprecated get git password command (#3293) Signed-off-by: Austin Abro --- .../content/docs/commands/zarf_dev_find-images.md | 2 +- src/cmd/dev.go | 2 +- src/cmd/tools/zarf.go | 12 ------------ 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/site/src/content/docs/commands/zarf_dev_find-images.md b/site/src/content/docs/commands/zarf_dev_find-images.md index 7c1eb61b39..fa6c843222 100644 --- a/site/src/content/docs/commands/zarf_dev_find-images.md +++ b/site/src/content/docs/commands/zarf_dev_find-images.md @@ -17,7 +17,7 @@ Evaluates components in a Zarf file to identify images specified in their helm c Components that have repos that host helm charts can be processed by providing the --repo-chart-path. ``` -zarf dev find-images [ PACKAGE ] [flags] +zarf dev find-images [ DIRECTORY ] [flags] ``` ### Options diff --git a/src/cmd/dev.go b/src/cmd/dev.go index f723eea911..2bd49ee3f5 100644 --- a/src/cmd/dev.go +++ b/src/cmd/dev.go @@ -237,7 +237,7 @@ var devSha256SumCmd = &cobra.Command{ } var devFindImagesCmd = &cobra.Command{ - Use: "find-images [ PACKAGE ]", + Use: "find-images [ DIRECTORY ]", Aliases: []string{"f"}, Args: cobra.MaximumNArgs(1), Short: lang.CmdDevFindImagesShort, diff --git a/src/cmd/tools/zarf.go b/src/cmd/tools/zarf.go index 3f967a8510..cb2904389a 100644 --- a/src/cmd/tools/zarf.go +++ b/src/cmd/tools/zarf.go @@ -46,17 +46,6 @@ const ( agentKey = "agent" ) -var deprecatedGetGitCredsCmd = &cobra.Command{ - Use: "get-git-password", - Hidden: true, - Short: lang.CmdToolsGetGitPasswdShort, - Long: lang.CmdToolsGetGitPasswdLong, - Run: func(_ *cobra.Command, _ []string) { - message.Warn(lang.CmdToolsGetGitPasswdDeprecation) - getCredsCmd.Run(getCredsCmd, []string{"git"}) - }, -} - var getCredsCmd = &cobra.Command{ Use: "get-creds", Short: lang.CmdToolsGetCredsShort, @@ -416,7 +405,6 @@ var generateKeyCmd = &cobra.Command{ func init() { v := common.InitViper() - toolsCmd.AddCommand(deprecatedGetGitCredsCmd) toolsCmd.AddCommand(getCredsCmd) toolsCmd.AddCommand(updateCredsCmd)