Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: #754 - add help information into root commands #844

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading