From 107e525cbcb7221d562883fd593b71d07fd6f44b Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Thu, 19 Sep 2024 16:47:59 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20help=20subcommand?= =?UTF-8?q?=20and=20description=20for=20gateways?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/gateways/index.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/commands/gateways/index.ts b/src/commands/gateways/index.ts index 7d30353..c032103 100644 --- a/src/commands/gateways/index.ts +++ b/src/commands/gateways/index.ts @@ -15,7 +15,8 @@ export default (program: Command) => { cmd .command('list') .description(t('listAllPrvGwForSelectProject')) - .action(() => listPrivateGatewaysActionHandler()); + .action(() => listPrivateGatewaysActionHandler()) + .addHelpCommand(); cmd .command('detail') @@ -36,7 +37,8 @@ export default (program: Command) => { .description(t('gatewayShowDetails')) .action((options: { id?: string; slug?: string }) => detailPrivateGatewayActionHandler(options), - ); + ) + .addHelpCommand(); cmd .command('create') @@ -44,8 +46,9 @@ export default (program: Command) => { .description(t('gatewayCreateCmdDesc')) .action((options: { name?: string }) => createPrivateGatewayActionHandler(options), - ); - + ) + .addHelpCommand(); + cmd .command('delete') .option( @@ -67,7 +70,8 @@ export default (program: Command) => { .description(t('gatewayDelete')) .action((options: { id?: string; slug?: string }) => deletePrivateGatewayActionHandler(options), - ); + ) + .addHelpCommand(); cmd.command('help').description(t('printHelp')); };