(yargs: Argv)
| 28 | const describe = 'update a capability' |
| 29 | |
| 30 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 31 | inputAndOutputItemBuilder(capabilityIdBuilder(apiOrganizationCommandBuilder(yargs))) |
| 32 | .example([ |
| 33 | [ |
| 34 | '$0 capabilities:update -i my-capability.json', |
| 35 | 'prompt for a capability and update it using the data in "my-capability.json"', |
| 36 | ], |
| 37 | [ |
| 38 | '$0 capabilities:update cathappy12345.myCapability --input my-capability.json', |
| 39 | 'update the capability with the given id using the data in "my-capability.json"', |
| 40 | ], |
| 41 | ]) |
| 42 | .epilog(buildEpilog({ command, apiDocs: 'updateCapability' })) |
| 43 | |
| 44 | const handler = async (argv: ArgumentsCamelCase<CommandArgs>): Promise<void> => { |
| 45 | const command = await apiOrganizationCommand(argv) |
nothing calls this directly
no test coverage detected