Skip to content

Commit

Permalink
🧹 remove duplicate registered commands (#2318)
Browse files Browse the repository at this point in the history
on the update command we use for development of cnquery only

Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus authored Oct 21, 2023
1 parent e0eb4d1 commit aa591a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions providers-sdk/v1/util/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,7 @@ func init() {

modUpdateCmd.PersistentFlags().BoolVar(&latestVersion, "latest", false, "update versions to latest")
modUpdateCmd.PersistentFlags().BoolVar(&latestPatchVersion, "patch", false, "update versions to latest patch")
rootCmd.AddCommand(updateCmd, checkCmd, modUpdateCmd, modTidyCmd)
rootCmd.AddCommand(updateCmd, checkCmd, defaultsCmd)
rootCmd.AddCommand(updateCmd, checkCmd, modUpdateCmd, modTidyCmd, defaultsCmd)
}

func main() {
Expand Down

0 comments on commit aa591a7

Please sign in to comment.