From 655cfb9208c62dbb363809e243c35e71c94ad6ca Mon Sep 17 00:00:00 2001 From: Rinat Khaziev Date: Thu, 30 Nov 2023 15:10:11 -0600 Subject: [PATCH] getUsage method should be public --- src/lib/command.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/command.ts b/src/lib/command.ts index 533a7301c..d822297ac 100644 --- a/src/lib/command.ts +++ b/src/lib/command.ts @@ -45,7 +45,7 @@ class BaseCommand { return this.name; } - protected getUsage(): any { + public getUsage(): any { return this.usage; } } @@ -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' } );