From f5b8a3f7104a75dc19e3402dfe186fecf45ff034 Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Mon, 28 Jun 2021 20:04:05 +0200 Subject: [PATCH] Make all commands a plural word --- cmd/headscale/cli/namespaces.go | 2 +- cmd/headscale/cli/nodes.go | 10 +++++----- cmd/headscale/cli/preauthkeys.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/headscale/cli/namespaces.go b/cmd/headscale/cli/namespaces.go index 2bc9171a..7fd4c8d7 100644 --- a/cmd/headscale/cli/namespaces.go +++ b/cmd/headscale/cli/namespaces.go @@ -9,7 +9,7 @@ import ( ) var NamespaceCmd = &cobra.Command{ - Use: "namespace", + Use: "namespaces", Short: "Manage the namespaces of Headscale", } diff --git a/cmd/headscale/cli/nodes.go b/cmd/headscale/cli/nodes.go index c3b31a85..5115128c 100644 --- a/cmd/headscale/cli/nodes.go +++ b/cmd/headscale/cli/nodes.go @@ -9,6 +9,11 @@ import ( "github.com/spf13/cobra" ) +var NodeCmd = &cobra.Command{ + Use: "nodes", + Short: "Manage the nodes of Headscale", +} + var RegisterCmd = &cobra.Command{ Use: "register machineID", Short: "Registers a machine to your network", @@ -81,8 +86,3 @@ var ListNodesCmd = &cobra.Command{ }, } - -var NodeCmd = &cobra.Command{ - Use: "node", - Short: "Manage the nodes of Headscale", -} diff --git a/cmd/headscale/cli/preauthkeys.go b/cmd/headscale/cli/preauthkeys.go index 331555a5..e9b61fa0 100644 --- a/cmd/headscale/cli/preauthkeys.go +++ b/cmd/headscale/cli/preauthkeys.go @@ -11,7 +11,7 @@ import ( ) var PreauthkeysCmd = &cobra.Command{ - Use: "preauthkey", + Use: "preauthkeys", Short: "Handle the preauthkeys in Headscale", }