From b1bc152836f88ddbd550b7de7ae5ff617cae2eba Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Thu, 19 Sep 2024 17:03:34 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20help=20subcommand?= =?UTF-8?q?=20and=20description=20for=20sites?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/sites/index.ts | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/commands/sites/index.ts b/src/commands/sites/index.ts index 8c9cdac..7ebb99a 100644 --- a/src/commands/sites/index.ts +++ b/src/commands/sites/index.ts @@ -16,7 +16,8 @@ export default (program: Command) => { cmd .command('init') .description(t('sitesInitDescription')) - .action(() => initActionHandler()); + .action(() => initActionHandler()) + .addHelpCommand(); cmd .command('ci') @@ -28,7 +29,8 @@ export default (program: Command) => { predefinedConfigPath: options.config, provider: options.provider, }), - ); + ) + .addHelpCommand(); cmd .command('deploy') @@ -36,12 +38,14 @@ export default (program: Command) => { .option('-c, --config ', t('deploySpecifyPathJson')) .action((options: { config?: string }) => deployActionHandler({ predefinedConfigPath: options.config }), - ); + ) + .addHelpCommand(); cmd .command('list') .description(t('listSitesDesc')) - .action(() => listActionHandler()); + .action(() => listActionHandler()) + .addHelpCommand(); cmd .command('deployments') @@ -56,7 +60,8 @@ export default (program: Command) => { .description(t('deploymentsListForSelectedSite')) .action((options: { id?: string; slug?: string }) => listDeploymentsActionHandler(options), - ); + ) + .addHelpCommand(); cmd .command('help')