mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-28 20:22:06 +01:00
Use JsonOutput in version too
This commit is contained in:
@@ -30,7 +30,7 @@ var RegisterCmd = &cobra.Command{
|
||||
}
|
||||
m, err := h.RegisterMachine(args[0], n)
|
||||
if strings.HasPrefix(o, "json") {
|
||||
jsonOutput(m, err, o)
|
||||
JsonOutput(m, err, o)
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
@@ -57,7 +57,7 @@ var ListNodesCmd = &cobra.Command{
|
||||
}
|
||||
machines, err := h.ListMachinesInNamespace(n)
|
||||
if strings.HasPrefix(o, "json") {
|
||||
jsonOutput(machines, err, o)
|
||||
JsonOutput(machines, err, o)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user