(ctx context.Context, machineID string)
| 11 | ) |
| 12 | |
| 13 | func (cli *cliMachines) validate(ctx context.Context, machineID string) error { |
| 14 | if err := cli.db.ValidateMachine(ctx, machineID); err != nil { |
| 15 | return fmt.Errorf("unable to validate machine '%s': %w", machineID, err) |
| 16 | } |
| 17 | |
| 18 | log.Infof("machine '%s' validated successfully", machineID) |
| 19 | |
| 20 | return nil |
| 21 | } |
| 22 | |
| 23 | func (cli *cliMachines) newValidateCmd() *cobra.Command { |
| 24 | cmd := &cobra.Command{ |
no test coverage detected