(yargs: Argv)
| 22 | const describe = 'remove a driver from a channel' |
| 23 | |
| 24 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 25 | apiOrganizationCommandBuilder(yargs) |
| 26 | .positional('driver-id', { describe: 'driver id', type: 'string' }) |
| 27 | .option('channel', { alias: 'C', describe: 'channel to unassigned from', type: 'string' }) |
| 28 | .example([ |
| 29 | ['$0 edge:channels:unassign', 'prompt for a channel and driver'], |
| 30 | [ |
| 31 | '$0 edge:channels:unassign 636169e4-8b9f-4438-a941-953b0d617231', |
| 32 | 'prompt for a channel and remove the specified driver from it', |
| 33 | ], |
| 34 | [ |
| 35 | '$0 edge:channels:unassign --channel 6ea857c6-23d4-4aae-aaf7-7a36daf42f92', |
| 36 | 'prompt for a driver and remove it from the specified channel', |
| 37 | ], |
| 38 | [ |
| 39 | '$0 edge:channels:unassign 636169e4-8b9f-4438-a941-953b0d617231' + |
| 40 | ' --channel 6ea857c6-23d4-4aae-aaf7-7a36daf42f92', |
| 41 | 'remove the specified driver from the specified channel', |
| 42 | ], |
| 43 | ]) |
| 44 | .epilog(buildEpilog({ command, apiDocs: 'deleteDriverChannel' })) |
| 45 | |
| 46 | |
| 47 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
nothing calls this directly
no test coverage detected