diff options
author | Arne Juul <arnej@yahooinc.com> | 2023-02-20 12:09:32 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahooinc.com> | 2023-02-20 12:09:32 +0000 |
commit | 2b8bb53fa3489a99e054c7036049a252a55783e9 (patch) | |
tree | f1856a3bbdf43dfe16919bac795e2ef1c884f07f /client | |
parent | b9f10138d4a80e1e2cc826809af41e0b3a8bb16d (diff) |
add "printDebug" also
Diffstat (limited to 'client')
-rw-r--r-- | client/go/internal/cli/cmd/root.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/go/internal/cli/cmd/root.go b/client/go/internal/cli/cmd/root.go index 70a9698c612..70e0afbcd32 100644 --- a/client/go/internal/cli/cmd/root.go +++ b/client/go/internal/cli/cmd/root.go @@ -264,6 +264,10 @@ func (c *CLI) printSuccess(msg ...interface{}) { fmt.Fprintln(c.Stdout, color.GreenString("Success:"), fmt.Sprint(msg...)) } +func (c *CLI) printDebug(msg ...interface{}) { + fmt.Fprintln(c.Stderr, color.CyanString("Debug:"), fmt.Sprint(msg...)) +} + func (c *CLI) printWarning(msg interface{}, hints ...string) { fmt.Fprintln(c.Stderr, color.YellowString("Warning:"), msg) for _, hint := range hints { |