Skip to content

Commit

Permalink
fix: corrected processing of command line input into command line id
Browse files Browse the repository at this point in the history
  • Loading branch information
rossiam committed Aug 17, 2020
1 parent 27d7bee commit 25da623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/commands/capabilities/delete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ export default class CapabilitiesDeleteCommand extends SelectingAPICommandBase<C
const { args, argv, flags } = this.parse(CapabilitiesDeleteCommand)
await super.setup(args, argv, flags)

this.processNormally({ id: args.id, version: args.version },
const optionalId = args.id ? { id: args.id, version: args.version ?? 1 } : undefined
this.processNormally(optionalId,
async () => this.getCustomByNamespace(),
async (id) => { this.client.capabilities.delete(id.id, id.version) },
'capability {{id}} deleted')
Expand Down

0 comments on commit 25da623

Please sign in to comment.