(yargs: Argv)
| 20 | const describe = 'uninstall an edge driver from a hub' |
| 21 | |
| 22 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 23 | apiCommandBuilder(yargs) |
| 24 | .positional('driver-id', { describe: 'id of driver to uninstall', type: 'string' }) |
| 25 | .option('hub', { alias: 'H', describe: 'hub id', type: 'string' }) |
| 26 | .example([ |
| 27 | ['$0 edge:drivers:uninstall', 'prompt for a hub and driver and uninstall the driver from the hub'], |
| 28 | [ |
| 29 | '$0 edge:drivers:uninstall e61b9758-dfd5-4256-8a68-e411e38572b6', |
| 30 | 'uninstall the specified driver', |
| 31 | ], |
| 32 | ]) |
| 33 | .epilog(buildEpilog({ command, apiDocs: 'uninstallDriver' })) |
| 34 | |
| 35 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 36 | const command = await apiCommand(argv) |
nothing calls this directly
no test coverage detected