mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 04:48:26 +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
+8
-4
@@ -263,7 +263,8 @@ func (service searchService) getAllImages(ctx context.Context, config searchConf
|
||||
return
|
||||
}
|
||||
|
||||
_, err = makeGETRequest(ctx, catalogEndPoint, username, password, *config.verifyTLS, catalog)
|
||||
_, err = makeGETRequest(ctx, catalogEndPoint, username, password, *config.verifyTLS,
|
||||
*config.debug, catalog, config.resultWriter)
|
||||
if err != nil {
|
||||
if isContextDone(ctx) {
|
||||
return
|
||||
@@ -306,7 +307,8 @@ func getImage(ctx context.Context, config searchConfig, username, password, imag
|
||||
}
|
||||
|
||||
tagList := &tagListResp{}
|
||||
_, err = makeGETRequest(ctx, tagListEndpoint, username, password, *config.verifyTLS, &tagList)
|
||||
_, err = makeGETRequest(ctx, tagListEndpoint, username, password, *config.verifyTLS,
|
||||
*config.debug, &tagList, config.resultWriter)
|
||||
|
||||
if err != nil {
|
||||
if isContextDone(ctx) {
|
||||
@@ -658,7 +660,8 @@ func (service searchService) makeGraphQLQuery(ctx context.Context,
|
||||
return err
|
||||
}
|
||||
|
||||
err = makeGraphQLRequest(ctx, endPoint, query, username, password, *config.verifyTLS, resultPtr)
|
||||
err = makeGraphQLRequest(ctx, endPoint, query, username, password, *config.verifyTLS,
|
||||
*config.debug, resultPtr, config.resultWriter)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -1082,7 +1085,8 @@ func (service searchService) getRepos(ctx context.Context, config searchConfig,
|
||||
return
|
||||
}
|
||||
|
||||
_, err = makeGETRequest(ctx, catalogEndPoint, username, password, *config.verifyTLS, catalog)
|
||||
_, err = makeGETRequest(ctx, catalogEndPoint, username, password, *config.verifyTLS,
|
||||
*config.debug, catalog, config.resultWriter)
|
||||
if err != nil {
|
||||
if isContextDone(ctx) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user