register command - client

This commit is contained in:
Matthew R. Kasun
2022-04-13 15:25:35 -04:00
parent 199ea15b1d
commit 6aa1a68a6f
7 changed files with 76 additions and 1 deletions

View File

@@ -105,6 +105,18 @@ func GetCommands(cliFlags []cli.Flag) []*cli.Command {
return err
},
},
{
Name: "register",
Usage: "register with netmaker",
Flags: cliFlags,
Action: func(c *cli.Context) error {
cfg, _, err := config.GetCLIConfig(c)
if err != nil {
return err
}
return command.Register(&cfg)
},
},
}
}