Skip to content

Commit

Permalink
Delete undefined functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevent-fei committed Sep 1, 2022
1 parent 8cc8ee0 commit 8621863
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/sealer/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ func Execute() {
func init() {
cobra.OnInitialize(initConfig)

rootCmd.AddCommand(alpha.NewCmdAlpha(), image.NewCmdImage(), NewCompletionCmd(), NewVersionCmd(),
rootCmd.AddCommand(alpha.NewCmdAlpha(), NewCompletionCmd(), NewVersionCmd(),
cluster.NewApplyCmd(), cluster.NewCheckCmd(), cluster.NewDeleteCmd(), cluster.NewJoinCmd(), cluster.NewRunCmd(),
image.NewBuildCmd(), image.NewGenDocCommand(), image.NewListCmd(), image.NewInspectCmd(), image.NewLoadCmd(), image.NewLoginCmd(),
image.NewLogoutCmd(), image.NewPullCmd(), image.NewPushCmd(), image.NewRmiCmd(), image.NewSaveCmd(), image.NewSearchCmd(), image.NewTagCmd())

rootCmd.PersistentFlags().StringVar(&rootOpt.cfgFile, "config", "", "config file of sealer tool (default is $HOME/.sealer.json)")
rootCmd.PersistentFlags().BoolVarP(&rootOpt.debugModeOn, "debug", "d", false, "turn on debug mode")
rootCmd.PersistentFlags().BoolVarP(&rootCmd.SilenceUsage, "quiet", "q", false, "silence the usage when fail")
Expand Down

0 comments on commit 8621863

Please sign in to comment.