From 07171073499d3bd2f1c9d0e095a5cac3fba02c4c Mon Sep 17 00:00:00 2001 From: Helder Oliveira Date: Thu, 19 Sep 2024 17:00:27 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20add=20help=20subcommand?= =?UTF-8?q?=20and=20description=20for=20projects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/commands/projects/index.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/commands/projects/index.ts b/src/commands/projects/index.ts index 5e31a35..4d8cf64 100644 --- a/src/commands/projects/index.ts +++ b/src/commands/projects/index.ts @@ -9,22 +9,26 @@ export default (program: Command) => { const cmd = program .command('projects') .option('-h, --help', t('printHelp')) - .description(t('projectsDescription')); + .description(t('projectsDescription')) + .addHelpCommand(); cmd .command('list') .description(t('projectsListDesc')) - .action(() => listProjectsActionHandler()); + .action(() => listProjectsActionHandler()) + .addHelpCommand(); cmd .command('switch') .option('--id ', t('projectsSwitchOptId')) .description(t('projectsSwitchBetween')) - .action((options: { id?: string }) => switchProjectActionHandler(options)); + .action((options: { id?: string }) => switchProjectActionHandler(options)) + .addHelpCommand(); cmd .command('create') .option('--name ', t('projectsWhatNameOfProject')) .description(t('projectsCreateNewDesc')) - .action((options: { name: string }) => createProjectActionHandler(options)); + .action((options: { name: string }) => createProjectActionHandler(options)) + .addHelpCommand(); };