mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
refactor(cli): Move cmdflags package under pkg/cli/client (#1840)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
@@ -5,8 +5,6 @@ package client
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"zotregistry.io/zot/pkg/cli/cmdflags"
|
||||
)
|
||||
|
||||
const prefix = "Searching... "
|
||||
@@ -21,13 +19,13 @@ func NewRepoCommand(searchService SearchService) *cobra.Command {
|
||||
|
||||
repoCmd.SetUsageTemplate(repoCmd.UsageTemplate() + usageFooter)
|
||||
|
||||
repoCmd.PersistentFlags().String(cmdflags.URLFlag, "",
|
||||
repoCmd.PersistentFlags().String(URLFlag, "",
|
||||
"Specify zot server URL if config-name is not mentioned")
|
||||
repoCmd.PersistentFlags().String(cmdflags.ConfigFlag, "",
|
||||
repoCmd.PersistentFlags().String(ConfigFlag, "",
|
||||
"Specify the registry configuration to use for connection")
|
||||
repoCmd.PersistentFlags().StringP(cmdflags.UserFlag, "u", "",
|
||||
repoCmd.PersistentFlags().StringP(UserFlag, "u", "",
|
||||
`User Credentials of zot server in "username:password" format`)
|
||||
repoCmd.PersistentFlags().Bool(cmdflags.DebugFlag, false, "Show debug output")
|
||||
repoCmd.PersistentFlags().Bool(DebugFlag, false, "Show debug output")
|
||||
|
||||
repoCmd.AddCommand(NewListReposCommand(searchService))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user