(yargs: Argv)
| 16 | const describe = 'delete a virtual device' |
| 17 | |
| 18 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 19 | apiCommandBuilder(yargs) |
| 20 | .positional('id', { describe: 'device id', type: 'string' }) |
| 21 | .example([ |
| 22 | ['$0 virtualdevices:delete', 'choose the device to delete from a list'], |
| 23 | [ |
| 24 | '$0 virtualdevices:delete 43daec4d-f2c6-4bc3-9df7-50ed1012c137', |
| 25 | 'delete the device with the specified id', |
| 26 | ], |
| 27 | ]) |
| 28 | .epilog(buildEpilog({ command })) |
| 29 | |
| 30 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 31 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected