Use JsonOutput in version too
This commit is contained in:
parent
9eaac71762
commit
8ad366f977
6 changed files with 14 additions and 30 deletions
|
@ -79,7 +79,7 @@ func loadDerpMap(path string) (*tailcfg.DERPMap, error) {
|
|||
return &derpMap, err
|
||||
}
|
||||
|
||||
func jsonOutput(result interface{}, errResult error, outputFormat string) {
|
||||
func JsonOutput(result interface{}, errResult error, outputFormat string) {
|
||||
var j []byte
|
||||
var err error
|
||||
switch outputFormat {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue