mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
add debug flag for zli commands (#785)
Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com> Signed-off-by: Lisca Ana-Roberta <ana.kagome@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
0f7b174fc0
commit
1bad90bb9d
+3
-1
@@ -15,7 +15,7 @@ import (
|
||||
func NewRepoCommand(searchService SearchService) *cobra.Command {
|
||||
var servURL, user, outputFormat string
|
||||
|
||||
var isSpinner, verifyTLS, verbose bool
|
||||
var isSpinner, verifyTLS, verbose, debug bool
|
||||
|
||||
repoCmd := &cobra.Command{
|
||||
Use: "repos [config-name]",
|
||||
@@ -73,6 +73,7 @@ func NewRepoCommand(searchService SearchService) *cobra.Command {
|
||||
user: &user,
|
||||
outputFormat: &outputFormat,
|
||||
verbose: &verbose,
|
||||
debug: &debug,
|
||||
spinner: spinnerState{spin, isSpinner},
|
||||
verifyTLS: &verifyTLS,
|
||||
resultWriter: cmd.OutOrStdout(),
|
||||
@@ -94,6 +95,7 @@ func NewRepoCommand(searchService SearchService) *cobra.Command {
|
||||
|
||||
repoCmd.Flags().StringVar(&servURL, "url", "", "Specify zot server URL if config-name is not mentioned")
|
||||
repoCmd.Flags().StringVarP(&user, "user", "u", "", `User Credentials of zot server in "username:password" format`)
|
||||
repoCmd.Flags().BoolVar(&debug, "debug", false, "Show debug output")
|
||||
|
||||
return repoCmd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user