(refactor) rename processor to post processor
This commit is contained in:
parent
4fd7efa2dc
commit
230b13e245
@ -113,18 +113,18 @@ if (cli.marker) {
|
|||||||
}
|
}
|
||||||
extractTask.setParsers(parsers);
|
extractTask.setParsers(parsers);
|
||||||
|
|
||||||
// Processors
|
// Post processors
|
||||||
const processors: PostProcessorInterface[] = [];
|
const postProcessors: PostProcessorInterface[] = [];
|
||||||
if (cli.clean) {
|
if (cli.clean) {
|
||||||
processors.push(new PurgeObsoleteKeysPostProcessor());
|
postProcessors.push(new PurgeObsoleteKeysPostProcessor());
|
||||||
}
|
}
|
||||||
if (cli.keyAsDefaultValue) {
|
if (cli.keyAsDefaultValue) {
|
||||||
processors.push(new KeyAsDefaultValuePostProcessor());
|
postProcessors.push(new KeyAsDefaultValuePostProcessor());
|
||||||
}
|
}
|
||||||
if (cli.sort) {
|
if (cli.sort) {
|
||||||
processors.push(new SortByKeyPostProcessor());
|
postProcessors.push(new SortByKeyPostProcessor());
|
||||||
}
|
}
|
||||||
extractTask.setProcessors(processors);
|
extractTask.setPostProcessors(postProcessors);
|
||||||
|
|
||||||
// Compiler
|
// Compiler
|
||||||
const compiler: CompilerInterface = CompilerFactory.create(cli.format, {
|
const compiler: CompilerInterface = CompilerFactory.create(cli.format, {
|
||||||
|
@ -85,7 +85,7 @@ export class ExtractTask implements TaskInterface {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public setProcessors(processors: PostProcessorInterface[]): this {
|
public setPostProcessors(processors: PostProcessorInterface[]): this {
|
||||||
this.processors = processors;
|
this.processors = processors;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user