Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ configuration file.

It can be used to export, import, or sync entities to Kong.`,
SilenceUsage: true,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
maybePrintUpdateNotice(cmd)
PersistentPreRunE: func(_ *cobra.Command, _ []string) error {
if _, err := url.ParseRequestURI(rootConfig.Address); err != nil {
return fmt.Errorf("invalid URL: %w", err)
}
Expand Down Expand Up @@ -84,11 +83,6 @@ It can be used to export, import, or sync entities to Kong.`,
viper.BindPFlag("analytics",
rootCmd.PersistentFlags().Lookup("analytics"))

rootCmd.PersistentFlags().Bool("suppress-update-check", false,
"Disable checking GitHub for newer decK releases.\n"+
"This value can also be set using DECK_SUPPRESS_UPDATE_CHECK "+
"environment variable.")

// TODO: everything below are online flags to be moved to the "gateway" subcommand
// moving them now would break to top-level commands (sync, diff, etc) we still
// need for backward compatibility.
Expand Down Expand Up @@ -272,11 +266,6 @@ It can be used to export, import, or sync entities to Kong.`,
fileCmd.AddCommand(newKong2KicCmd())
fileCmd.AddCommand(newKong2TfCmd())
}
defaultHelpFunc := rootCmd.HelpFunc()
rootCmd.SetHelpFunc(func(cmd *cobra.Command, args []string) {
maybePrintUpdateNotice(cmd)
defaultHelpFunc(cmd, args)
})
return rootCmd
}

Expand Down
138 changes: 0 additions & 138 deletions cmd/update_check.go

This file was deleted.

Loading
Loading