feat(bonfire): add FlagBool and read every bare switch with it (IN-04, quick-261028-rqd)
This commit is contained in:
@@ -43,7 +43,7 @@ first. With -q only the key is printed; --json prints {"key": "..."}.`,
|
||||
return err
|
||||
}
|
||||
switch {
|
||||
case flagOn(in, "json"):
|
||||
case bonfire.FlagBool(in, "json"):
|
||||
return printJSON(out, map[string]string{"key": key})
|
||||
case bonfire.IsQuiet(out):
|
||||
out.Println(key)
|
||||
|
||||
Reference in New Issue
Block a user