Use JsonOutput in version too

This commit is contained in:
Juan Font Alonso committed 2021-05-08 17:06:36 +02:00
1 parent 9eaac71762
commit 8ad366f977
6 files changed
+14 -30

No files matched your search

+1 -1
View File
@@ -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 {