Skip to content

Commit a32e007

Browse files
committed
Flag support patch.
Changelog excerpt: - The scanner can now also return data specific to those flags back to CLI.
1 parent 797c26c commit a32e007

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: Changelog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
5454
- [2024.10.15]: Parameters containing spaces weren't being parsed correctly by the recursiveCommand method; Fixed.
5555

5656
#### Other changes.
57-
- [2024.10.15]: Added the ability to add special, optional flags after the parameter when using the scan command, with the intent to modify scan behaviour.
57+
- [2024.10.15]: Added the ability to add special, optional flags after the parameter when using the scan command, with the intent to modify scan behaviour. The scanner can now also return data specific to those flags back to CLI.

Diff for: src/CLI.php

+4
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
239239
$this->Loader->InstanceCache[$Matches[1]] = true;
240240
}
241241
echo "\n" . $this->Scanner->scan($TargetData) . "\n";
242+
if (isset($this->Loader->InstanceCache['Print after CLI scan']) && $this->Loader->InstanceCache['Print after CLI scan'] !== '') {
243+
echo "\n" . $this->Loader->InstanceCache['Print after CLI scan'] . "\n";
244+
$this->Loader->InstanceCache['Print after CLI scan'] = '';
245+
}
242246
continue;
243247
}
244248

0 commit comments

Comments
 (0)