mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
A bunch of CLI work
This commit is contained in:
parent
c4504fd3ff
commit
7fc78129f4
19 changed files with 225 additions and 153 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue