mirror of
https://github.com/juanfont/headscale.git
synced 2026-09-18 06:22:05 +09:00
Use JsonOutput in version too
This commit is contained in:
@@ -31,7 +31,7 @@ var ListPreAuthKeys = &cobra.Command{
|
||||
}
|
||||
keys, err := h.GetPreAuthKeys(n)
|
||||
if strings.HasPrefix(o, "json") {
|
||||
jsonOutput(keys, err, o)
|
||||
JsonOutput(keys, err, o)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ var CreatePreAuthKeyCmd = &cobra.Command{
|
||||
|
||||
k, err := h.CreatePreAuthKey(n, reusable, expiration)
|
||||
if strings.HasPrefix(o, "json") {
|
||||
jsonOutput(k, err, o)
|
||||
JsonOutput(k, err, o)
|
||||
return
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user