Skip to content

Commit

Permalink
Merge pull request #1847 from alko89/feat/start-optional-args
Browse files Browse the repository at this point in the history
feat: Allow passing arguments to nest start <app>
  • Loading branch information
kamilmysliwiec committed Dec 27, 2022
2 parents 1deb3d1 + a20e0ce commit a23e922
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion commands/start.command.ts
@@ -1,4 +1,5 @@
import { Command, CommanderStatic } from 'commander';
import { getRemainingFlags } from '../lib/utils/remaining-flags';
import { AbstractCommand } from './abstract.command';
import { Input } from './command.input';

Expand Down Expand Up @@ -74,7 +75,13 @@ export class StartCommand extends AbstractCommand {

const inputs: Input[] = [];
inputs.push({ name: 'app', value: app });
await this.action.handle(inputs, options);
const flags = getRemainingFlags(program);

try {
await this.action.handle(inputs, options, flags);
} catch (err) {
process.exit(1);
}
});
}
}

0 comments on commit a23e922

Please sign in to comment.