From 230b13e245e2e33e72e8a7866dd3a037b21596cb Mon Sep 17 00:00:00 2001 From: Kim Biesbjerg Date: Thu, 13 Jun 2019 11:44:04 +0200 Subject: [PATCH] (refactor) rename processor to post processor --- src/cli/cli.ts | 12 ++++++------ src/cli/tasks/extract.task.ts | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cli/cli.ts b/src/cli/cli.ts index ce86e2e..545b9ad 100755 --- a/src/cli/cli.ts +++ b/src/cli/cli.ts @@ -113,18 +113,18 @@ if (cli.marker) { } extractTask.setParsers(parsers); -// Processors -const processors: PostProcessorInterface[] = []; +// Post processors +const postProcessors: PostProcessorInterface[] = []; if (cli.clean) { - processors.push(new PurgeObsoleteKeysPostProcessor()); + postProcessors.push(new PurgeObsoleteKeysPostProcessor()); } if (cli.keyAsDefaultValue) { - processors.push(new KeyAsDefaultValuePostProcessor()); + postProcessors.push(new KeyAsDefaultValuePostProcessor()); } if (cli.sort) { - processors.push(new SortByKeyPostProcessor()); + postProcessors.push(new SortByKeyPostProcessor()); } -extractTask.setProcessors(processors); +extractTask.setPostProcessors(postProcessors); // Compiler const compiler: CompilerInterface = CompilerFactory.create(cli.format, { diff --git a/src/cli/tasks/extract.task.ts b/src/cli/tasks/extract.task.ts index dc34205..de74e78 100644 --- a/src/cli/tasks/extract.task.ts +++ b/src/cli/tasks/extract.task.ts @@ -85,7 +85,7 @@ export class ExtractTask implements TaskInterface { return this; } - public setProcessors(processors: PostProcessorInterface[]): this { + public setPostProcessors(processors: PostProcessorInterface[]): this { this.processors = processors; return this; }