A bunch of CLI work

This commit is contained in:
Adam Ierymenko 2019-09-30 16:12:08 -07:00
parent c4504fd3ff
commit 7fc78129f4
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
19 changed files with 225 additions and 153 deletions

View file

@ -14,6 +14,7 @@
package cli
import (
"encoding/json"
"fmt"
"net/http"
"os"
@ -43,3 +44,8 @@ func enabledDisabled(f bool) string {
}
return "DISABLED"
}
func jsonDump(obj interface{}) string {
j, _ := json.MarshalIndent(obj, "", " ")
return string(j)
}