mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
refactor(cli): remove old cli commands (#1756)
Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
This commit is contained in:
+2
-6
@@ -210,16 +210,12 @@ func NewCliRootCmd() *cobra.Command {
|
||||
},
|
||||
}
|
||||
|
||||
rootCmd.SilenceUsage = true
|
||||
|
||||
// additional cmds
|
||||
enableCli(rootCmd)
|
||||
// "version"
|
||||
rootCmd.Flags().BoolVarP(&showVersion, cmdflags.VersionFlag, "v", false, "show the version and exit")
|
||||
rootCmd.PersistentFlags().String(cmdflags.URLFlag, "",
|
||||
"Specify zot server URL if config-name is not mentioned")
|
||||
rootCmd.PersistentFlags().String(cmdflags.ConfigFlag, "",
|
||||
"Specify the repository where to connect")
|
||||
rootCmd.PersistentFlags().StringP(cmdflags.UserFlag, "u", "",
|
||||
`User Credentials of zot server in "username:password" format`)
|
||||
|
||||
return rootCmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user