Skip to content

Commit 6a50aa4

Browse files
committed
Added fix for base command not being flexible enough to support different downstream commands
1 parent da452f4 commit 6a50aa4

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/commands/uninstall.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { Args } from '@oclif/core'
2-
31
import { UninstallOrchestrator } from '../orchestrators/uninstall.js';
42
import { BaseCommand } from '../common/base-command.js';
53

@@ -14,13 +12,6 @@ export default class Uninstall extends BaseCommand {
1412

1513
static strict = false;
1614

17-
static args = {
18-
resources: Args.string({
19-
description: 'A resource typeId for uninstalling. Ex: "codify uninstall homebrew"',
20-
required: true,
21-
}),
22-
}
23-
2415
public async run(): Promise<void> {
2516
const { raw } = await this.parse(Uninstall)
2617

src/common/base-command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export abstract class BaseCommand extends Command {
2222

2323
const { flags } = await this.parse({
2424
baseFlags: (super.ctor as typeof BaseCommand).baseFlags,
25+
strict: false,
2526
});
2627

2728
const reporterType = this.getReporterType(flags);

0 commit comments

Comments
 (0)