forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.ts
More file actions
22 lines (19 loc) · 737 Bytes
/
run.ts
File metadata and controls
22 lines (19 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// tslint:disable:no-global-tslint-disable file-header
import { ArchitectCommand, ArchitectCommandOptions } from '../models/architect-command';
import { CommandScope, Option } from '../models/command';
export default class RunCommand extends ArchitectCommand {
public readonly name = 'run';
public readonly description = 'Runs Architect targets.';
public readonly scope = CommandScope.inProject;
public readonly arguments: string[] = ['target'];
public readonly options: Option[] = [
this.configurationOption,
];
public async run(options: ArchitectCommandOptions) {
if (options.target) {
return this.runArchitectTarget(options);
} else {
throw new Error('Invalid architect target.');
}
}
}