(yargs: Argv)
| 51 | const describe = 'create a capability' |
| 52 | |
| 53 | const builder = (yargs: Argv): Argv<CommandArgs> => |
| 54 | inputAndOutputItemBuilder(apiOrganizationCommandBuilder(yargs)) |
| 55 | .option('namespace', { |
| 56 | alias: 'n', |
| 57 | description: 'the namespace to create the capability under', |
| 58 | type: 'string', |
| 59 | }) |
| 60 | .example([ |
| 61 | ['$0 capabilities:create', 'create a capability from prompted input'], |
| 62 | ['$0 capabilities:create --dry-run', 'build JSON for a capability from prompted input'], |
| 63 | ['$0 capabilities:create -i my-capability.yaml', 'create a capability defined in "my-capability.yaml'], |
| 64 | ]) |
| 65 | .epilog(buildEpilog({ command, apiDocs: 'createCapability' })) |
| 66 | |
| 67 | const logger = log4js.getLogger('cli') |
| 68 |
nothing calls this directly
no test coverage detected