enable add device
This commit is contained in:
parent
5172f3ae6f
commit
a387b99e26
2 changed files with 4 additions and 2 deletions
|
@ -29,7 +29,7 @@ var (
|
|||
account string
|
||||
uri string
|
||||
|
||||
RemoveDeviceCmd = &cobra.Command{
|
||||
AddDeviceCmd = &cobra.Command{
|
||||
Use: "add <tsdevice uri>",
|
||||
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")
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue