Skip to content

Commit

Permalink
chore: #754 - add help information into root commands
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Jul 5, 2024
1 parent 20ecd54 commit 5fe0570
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 3 additions & 5 deletions cortex-js/src/infrastructure/commanders/configs.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ import { ConfigsSetCommand } from './configs/configs-set.command';
@SubCommand({
name: 'configs',
description: 'Get cortex configurations',
arguments: '<name>',
subCommands: [ConfigsGetCommand, ConfigsListCommand, ConfigsSetCommand],
argsDescription: {
name: 'Configuration name to get',
},
})
@SetCommandContext()
export class ConfigsCommand extends CommandRunner {
constructor(readonly contextService: ContextService) {
super();
}

async run(): Promise<void> {}
async run(): Promise<void> {
this.command?.help();
}
}
4 changes: 3 additions & 1 deletion cortex-js/src/infrastructure/commanders/engines.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,7 @@ export class EnginesCommand extends CommandRunner {
super();
}

async run(): Promise<void> {}
async run(): Promise<void> {
this.command?.help();
}
}
4 changes: 3 additions & 1 deletion cortex-js/src/infrastructure/commanders/models.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ import { RunCommand } from './shortcuts/run.command';
description: 'Subcommands for managing models',
})
export class ModelsCommand extends CommandRunner {
async run(): Promise<void> {}
async run(): Promise<void> {
this.command?.help();
}
}

0 comments on commit 5fe0570

Please sign in to comment.