Skip to content

Commit

Permalink
chore: 🤖 add help subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Sep 19, 2024
1 parent 296e73f commit 6bcca7a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/commands/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { t } from '../../utils/translation';
import { loginActionHandler } from './login';
import { logoutActionHandler } from './logout';

export default (program: Command) => {
program
export default (cmd: Command) => {
cmd
.command('login')
.description(t('loginToFlkPlt', { status: t('loginTo') }))
.action(() => {
Expand All @@ -22,10 +22,12 @@ export default (program: Command) => {
uiAppUrl,
authApiUrl,
});
});
})
.addHelpCommand();

program
cmd
.command('logout')
.description(t('loginToFlkPlt', { status: t('logoutOf') }))
.action(logoutActionHandler);
.action(logoutActionHandler)
.addHelpCommand();
};

0 comments on commit 6bcca7a

Please sign in to comment.