Only print empty cache message in terminal output (#47)
Some checks failed
ci-workflow / build (macos-latest) (push) Has been cancelled
ci-workflow / build (ubuntu-latest) (push) Has been cancelled
ci-workflow / build (windows-latest) (push) Has been cancelled
release / release (push) Has been cancelled

only print empty cache list in terminal output
This commit is contained in:
Leah
2023-01-18 23:08:15 +01:00
committed by GitHub
parent 9adb9e80c2
commit 47113d1159

View File

@@ -67,7 +67,7 @@ func NewCmdList() *cobra.Command {
fmt.Printf("Showing %d of %d cache entries in %s/%s\n\n", displayedEntriesCount(len(caches), f.Limit), totalCaches, repo.Owner(), repo.Name())
}
internal.PrettyPrintCacheList(caches)
} else {
} else if isTerminalOutput {
fmt.Printf("There are no Actions caches currently present in this repo or for the provided filters\n")
}
return nil