From a387b99e2611248ec88d4198ee70699dd3a50058 Mon Sep 17 00:00:00 2001 From: Finn Date: Mon, 22 Mar 2021 03:27:32 -0700 Subject: [PATCH] enable add device --- cmd/signaldctl/cmd/device/add/add-device.go | 4 ++-- cmd/signaldctl/cmd/device/root.go | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) 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) }