Skip to content

Commit

Permalink
chore: remove deprecated get git password command (#3293)
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 authored Dec 5, 2024
1 parent 6ed2231 commit 4c5c1e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion site/src/content/docs/commands/zarf_dev_find-images.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/dev.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
12 changes: 0 additions & 12 deletions src/cmd/tools/zarf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -416,7 +405,6 @@ var generateKeyCmd = &cobra.Command{
func init() {
v := common.InitViper()

toolsCmd.AddCommand(deprecatedGetGitCredsCmd)
toolsCmd.AddCommand(getCredsCmd)

toolsCmd.AddCommand(updateCredsCmd)
Expand Down

0 comments on commit 4c5c1e3

Please sign in to comment.