diff --git a/cmd/signaldctl/cmd/device/add/add-device.go b/cmd/signaldctl/cmd/device/add/add-device.go index 63d205b..e9feafa 100644 --- a/cmd/signaldctl/cmd/device/add/add-device.go +++ b/cmd/signaldctl/cmd/device/add/add-device.go @@ -29,7 +29,7 @@ var ( account string uri string - RemoveDeviceCmd = &cobra.Command{ + AddDeviceCmd = &cobra.Command{ Use: "add ", Short: "add a linked device", PreRun: func(cmd *cobra.Command, args []string) { @@ -62,5 +62,5 @@ var ( ) func init() { - RemoveDeviceCmd.Flags().StringVarP(&account, "account", "a", "", "local account to use") + AddDeviceCmd.Flags().StringVarP(&account, "account", "a", "", "local account to use") } diff --git a/cmd/signaldctl/cmd/device/root.go b/cmd/signaldctl/cmd/device/root.go index 11abfe6..f3169bd 100644 --- a/cmd/signaldctl/cmd/device/root.go +++ b/cmd/signaldctl/cmd/device/root.go @@ -18,6 +18,7 @@ package device import ( "github.com/spf13/cobra" + "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/device/add" "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/device/list" "gitlab.com/signald/signald-go/cmd/signaldctl/cmd/device/remove" ) @@ -28,6 +29,7 @@ var DeviceCmd = &cobra.Command{ } func init() { + DeviceCmd.AddCommand(add.AddDeviceCmd) DeviceCmd.AddCommand(list.ListDeviceCmd) DeviceCmd.AddCommand(remove.RemoveDeviceCmd) }