Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 27506e4

Browse files
authored
chore: #754 - add help information into root commands (#844)
1 parent 20ecd54 commit 27506e4

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

cortex-cpp/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Below is the available list of the model parameters you can set when loading a m
163163
164164

165165
## Manual Build
166-
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)
166+
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)
167167

168168
## Contact Support
169169

cortex-js/src/infrastructure/commanders/configs.command.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,15 @@ import { ConfigsSetCommand } from './configs/configs-set.command';
88
@SubCommand({
99
name: 'configs',
1010
description: 'Get cortex configurations',
11-
arguments: '<name>',
1211
subCommands: [ConfigsGetCommand, ConfigsListCommand, ConfigsSetCommand],
13-
argsDescription: {
14-
name: 'Configuration name to get',
15-
},
1612
})
1713
@SetCommandContext()
1814
export class ConfigsCommand extends CommandRunner {
1915
constructor(readonly contextService: ContextService) {
2016
super();
2117
}
2218

23-
async run(): Promise<void> {}
19+
async run(): Promise<void> {
20+
this.command?.help();
21+
}
2422
}

cortex-js/src/infrastructure/commanders/engines.command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@ export class EnginesCommand extends CommandRunner {
1616
super();
1717
}
1818

19-
async run(): Promise<void> {}
19+
async run(): Promise<void> {
20+
this.command?.help();
21+
}
2022
}

cortex-js/src/infrastructure/commanders/models.command.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,7 @@ import { RunCommand } from './shortcuts/run.command';
2323
description: 'Subcommands for managing models',
2424
})
2525
export class ModelsCommand extends CommandRunner {
26-
async run(): Promise<void> {}
26+
async run(): Promise<void> {
27+
this.command?.help();
28+
}
2729
}

cortex-js/src/infrastructure/commanders/models/model-list.command.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export class ModelListCommand extends CommandRunner {
2222
? console.table(
2323
models.map((e) => ({
2424
id: e.model,
25+
name: e.name,
2526
engine: e.engine,
2627
version: e.version,
2728
})),

0 commit comments

Comments
 (0)