Skip to content
Snippets Groups Projects
Commit 4b391e1b authored by michael.minelli's avatar michael.minelli
Browse files

GlobalHelper => Fix run command description

parent 1226394a
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ class ExerciseRunCommand extends CommanderCommand { ...@@ -7,7 +7,7 @@ class ExerciseRunCommand extends CommanderCommand {
protected commandName: string = 'run'; protected commandName: string = 'run';
protected defineCommand() { protected defineCommand() {
GlobalHelper.runCommandDefinition(this.command) GlobalHelper.runCommandDefinition(this.command, false)
.description('locally run an exercise') .description('locally run an exercise')
.action(this.commandAction.bind(this)); .action(this.commandAction.bind(this));
} }
......
...@@ -8,9 +8,9 @@ import Config from '../config/Config'; ...@@ -8,9 +8,9 @@ import Config from '../config/Config';
class GlobalHelper { class GlobalHelper {
public runCommandDefinition(command: Command) { public runCommandDefinition(command: Command, isAssignment: boolean = true): Command {
command command
.option('-p, --path <value>', 'assignment path', Config.folders.defaultLocalExercise) .option('-p, --path <value>', `${ isAssignment ? 'assignment' : 'exercise' } path`, Config.folders.defaultLocalExercise)
.option('-v, --verbose', 'verbose mode - display principal container output in live') .option('-v, --verbose', 'verbose mode - display principal container output in live')
.addOption(new Option('-w, --super-verbose', 'verbose mode - display all docker compose logs (build included) in live').conflicts('verbose')) .addOption(new Option('-w, --super-verbose', 'verbose mode - display all docker compose logs (build included) in live').conflicts('verbose'))
.addOption(new Option('--verbose-ssj2').hideHelp().implies({ superVerbose: true })); .addOption(new Option('--verbose-ssj2').hideHelp().implies({ superVerbose: true }));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment