mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-11-12 13:28:44 +00:00
Generated filters can be expanded
This commit is contained in:
parent
b123dcf079
commit
4c00155956
4 changed files with 34 additions and 9 deletions
|
|
@ -40,7 +40,7 @@ class GenerateCommand extends Command
|
|||
|
||||
try {
|
||||
// TODO: Inject this.
|
||||
new Builder($this->filters($input), $outputFile = $this->outputFile($input));
|
||||
new Builder($this->filters($input), $outputFile = $this->outputFile($input), true, $input->getOption('expanded'));
|
||||
|
||||
$io->success(sprintf('%s file generated.', $outputFile));
|
||||
} catch (IOException $e) {
|
||||
|
|
@ -61,6 +61,6 @@ class GenerateCommand extends Command
|
|||
throw new \RuntimeException('No input file found.');
|
||||
}
|
||||
|
||||
return require_once $inputFile;
|
||||
return require $inputFile;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue