Skip to content

Commit 79afc12

Browse files
Missing "success" printer level parsing
The `pkg/prt` package provides functions to print with the `success` verbosity, but the parsing logic hasn't recognized the `success` level name when used in any application-wide configuration file. Epic GH-33 Fixes GH-65
1 parent 1622134 commit 79afc12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/prt/printer.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ func ParseVerbosityLevel(lvl string) (Verbosity, error) {
8282
return ErrorVerbosity, nil
8383
case "warn":
8484
return WarnVerbosity, nil
85+
case "success":
86+
return SuccessVerbosity, nil
8587
case "info":
8688
return InfoVerbosity, nil
8789
case "debug":
@@ -99,6 +101,8 @@ func (v Verbosity) MarshalText() ([]byte, error) {
99101
return []byte("debug"), nil
100102
case InfoVerbosity:
101103
return []byte("info"), nil
104+
case SuccessVerbosity:
105+
return []byte("success"), nil
102106
case WarnVerbosity:
103107
return []byte("warn"), nil
104108
case ErrorVerbosity:

0 commit comments

Comments
 (0)