Skip to content

Commit

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

cmd
.command('create')
Expand All @@ -35,7 +36,8 @@ export default (program: Command) => {
authApiUrl,
...args,
});
});
})
.addHelpCommand();

cmd
.command('delete')
Expand All @@ -50,7 +52,8 @@ export default (program: Command) => {
)
.action((personalAccessTokenId: string) =>
deletePersonalAccessTokenActionHandler({ personalAccessTokenId }),
);
)
.addHelpCommand();

cmd.command('help').description(t('printHelp'));
};

0 comments on commit 6b574ee

Please sign in to comment.