()
| 21 | } |
| 22 | |
| 23 | func (cli *cliMachines) newValidateCmd() *cobra.Command { |
| 24 | cmd := &cobra.Command{ |
| 25 | Use: "validate", |
| 26 | Short: "validate a machine to access the local API", |
| 27 | Long: `validate a machine to access the local API.`, |
| 28 | Example: `cscli machines validate "machine_name"`, |
| 29 | Args: args.ExactArgs(1), |
| 30 | DisableAutoGenTag: true, |
| 31 | RunE: func(cmd *cobra.Command, args []string) error { |
| 32 | return cli.validate(cmd.Context(), args[0]) |
| 33 | }, |
| 34 | } |
| 35 | |
| 36 | return cmd |
| 37 | } |
no test coverage detected