Skip to content

Commit

Permalink
chore: #754 - add help information into root commands (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
louis-jan committed Jul 5, 2024
1 parent 20ecd54 commit 27506e4
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cortex-cpp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Below is the available list of the model parameters you can set when loading a m

## Manual Build
Manual build is a process in which the developers build the software manually. This is usually done when a new feature is implemented, or a bug is fixed. The process for this project is defined in [`.github/workflows/build.yml`](.github/workflows/build.yml)
Manual build is a process in which the developers build the software manually. This is usually done when a new feature is implemented, or a bug is fixed. The process for this project is defined in [`.github/workflows/cortex-build.yml`](../.github/workflows/cortex-build.yml)

## Contact Support

Expand Down
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export class ModelListCommand extends CommandRunner {
? console.table(
models.map((e) => ({
id: e.model,
name: e.name,
engine: e.engine,
version: e.version,
})),
Expand Down

0 comments on commit 27506e4

Please sign in to comment.