From ccd695dfaa9a7f66e86c8593e65c7e70931484e6 Mon Sep 17 00:00:00 2001 From: Deepak Dahiya <59823596+t-dedah@users.noreply.github.com> Date: Tue, 16 Aug 2022 17:35:44 +0800 Subject: [PATCH] Fixed e2e workflow issue (#29) * Fixed e2e workflow issue * Updating cli version * minor --- cmd/root.go | 2 +- internal/utils.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index cb879ba..8b23567 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -6,7 +6,7 @@ import ( "github.com/spf13/cobra" ) -const VERSION = "1.0.0" +const VERSION = "1.0.1" var rootCmd = &cobra.Command{ Use: "gh-actions-cache", diff --git a/internal/utils.go b/internal/utils.go index b67d816..d9e2baf 100644 --- a/internal/utils.go +++ b/internal/utils.go @@ -3,7 +3,6 @@ package internal import ( "errors" "fmt" - "os" "unicode/utf8" "github.com/TwiN/go-color" @@ -46,7 +45,7 @@ func FormatCacheSize(size_in_bytes float64) string { func PrettyPrintCacheList(caches []types.ActionsCache) { terminal := ghTerm.FromEnv() w, _, _ := terminal.Size() - tp := ghTableprinter.New(os.Stdout, true, w) + tp := ghTableprinter.New(terminal.Out(), terminal.IsTerminalOutput(), w) for _, cache := range caches { tp.AddField(cache.Key)