Skip to content

Commit

Permalink
chore: 🤖 add help subcommand and description for gateways
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Sep 19, 2024
1 parent 296e73f commit 107e525
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/commands/gateways/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ export default (program: Command) => {
cmd
.command('list')
.description(t('listAllPrvGwForSelectProject'))
.action(() => listPrivateGatewaysActionHandler());
.action(() => listPrivateGatewaysActionHandler())
.addHelpCommand();

cmd
.command('detail')
Expand All @@ -36,16 +37,18 @@ export default (program: Command) => {
.description(t('gatewayShowDetails'))
.action((options: { id?: string; slug?: string }) =>
detailPrivateGatewayActionHandler(options),
);
)
.addHelpCommand();

cmd
.command('create')
.option('--name <string>', t('gatewayCreateName'))
.description(t('gatewayCreateCmdDesc'))
.action((options: { name?: string }) =>
createPrivateGatewayActionHandler(options),
);

)
.addHelpCommand();

cmd
.command('delete')
.option(
Expand All @@ -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'));
};

0 comments on commit 107e525

Please sign in to comment.