cli: move client-only code out of the server flow

earlier, some of the client exclusive code was being run on zot server
instance too.

cli: fix the bug: spinner is not stopped with -o
This commit is contained in:
Tanmay Naik
2020-07-14 13:11:01 -04:00
parent e639b4814e
commit bb9fbd2ef9
9 changed files with 86 additions and 73 deletions
+2 -2
View File
@@ -120,9 +120,9 @@ func collectImages(outputFormat *string, stdWriter io.Writer, wg *sync.WaitGroup
return
}
if !foundResult && (*outputFormat == "text" || *outputFormat == "") {
spinner.stopSpinner()
spinner.stopSpinner()
if !foundResult && (*outputFormat == "text" || *outputFormat == "") {
var builder strings.Builder
printImageTableHeader(&builder)