Skip to content

Commit

Permalink
getUsage method should be public
Browse files Browse the repository at this point in the history
  • Loading branch information
rinatkhaziev committed Nov 30, 2023
1 parent edb402e commit 655cfb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class BaseCommand {
return this.name;
}

protected getUsage(): any {
public getUsage(): any {

Check failure on line 48 in src/lib/command.ts

View workflow job for this annotation

GitHub Actions / Lint

Unexpected any. Specify a different type
return this.usage;
}
}
Expand Down Expand Up @@ -105,7 +105,7 @@ const registry = CommandRegistry.getInstance();
registry.registerCommand( new ExampleCommand() );

for ( const [ key, command ] of registry.getCommands() ) {
console.log( `${key}`, command.getUsage() );
console.log( `${ key }`, command.getUsage() );
}

registry.invokeCommand( 'example', 'arg1', 'arg2', { named: 'arg' } );

0 comments on commit 655cfb9

Please sign in to comment.