feat(bonfire): add FlagBool and read every bare switch with it (IN-04, quick-261028-rqd)
This commit is contained in:
@@ -61,11 +61,7 @@ monitoring scripts.`,
|
||||
cfg = LoadConfig(nil)
|
||||
}
|
||||
client := NewClient(cfg, nil)
|
||||
asJSON := false
|
||||
if in != nil {
|
||||
v, _ := in.Flag("json")
|
||||
asJSON = v == "true"
|
||||
}
|
||||
asJSON := bonfire.FlagBool(in, "json")
|
||||
if asJSON {
|
||||
info := client.DebugInfo()
|
||||
res := healthJSON{APIURL: info.APIURL, Enabled: info.Enabled, APIKeySet: info.APIKeySet}
|
||||
|
||||
Reference in New Issue
Block a user