(yargs: Argv)
| 29 | const describe = 'update a channel' |
| 30 | |
| 31 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 32 | inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 33 | .positional('id', { describe: 'id of channel to update', type: 'string' }) |
| 34 | .example([ |
| 35 | [ |
| 36 | '$0 edge:channels:update --input channel.yaml', |
| 37 | 'prompt for a channel and update it using the data in channel.yaml', |
| 38 | ], |
| 39 | [ |
| 40 | '$0 edge:channels:update 0068b912-50fb-439d-a14a-27cc90ca81dc --input channel.json', |
| 41 | 'update the specified channel using the data in channel.json', |
| 42 | ], |
| 43 | ]) |
| 44 | .epilog(buildEpilog({ command, apiDocs: 'updateChannel' })) |
| 45 | |
| 46 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 47 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected