Luis Confraria 1ad25258de fix(@angular/cli): fix xi18n command typo
Change the command to extract i18n messages to xi18n instead of xi81n.
2018-04-18 09:50:21 -06:00

29 lines
824 B
TypeScript

import { CommandScope, Option } from '../models/command';
import { ArchitectCommand } from '../models/architect-command';
export interface Options {
project?: string;
configuration?: string;
}
export default class Xi18nCommand extends ArchitectCommand {
public readonly name = 'xi18n';
public readonly target = 'extract-i18n';
public readonly description = 'Extracts i18n messages from source code.';
public readonly scope = CommandScope.inProject;
public readonly options: Option[] = [
this.configurationOption
];
public async run(options: Options) {
const overrides = { ...options };
delete overrides.project;
return this.runArchitectTarget({
project: options.project,
target: this.target,
configuration: options.configuration,
overrides
}, options);
}
}