Skip to content

Commit

Permalink
Flag support patch.
Browse files Browse the repository at this point in the history
Changelog excerpt:
- The scanner can now also return data specific to those flags back to CLI.
  • Loading branch information
Maikuolan committed Oct 15, 2024
1 parent 797c26c commit a32e007
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Prior to phpMussel v3, the "phpMussel Co
- [2024.10.15]: Parameters containing spaces weren't being parsed correctly by the recursiveCommand method; Fixed.

#### Other changes.
- [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.
- [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.
4 changes: 4 additions & 0 deletions src/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ public function __construct(\phpMussel\Core\Loader &$Loader, \phpMussel\Core\Sca
$this->Loader->InstanceCache[$Matches[1]] = true;
}
echo "\n" . $this->Scanner->scan($TargetData) . "\n";
if (isset($this->Loader->InstanceCache['Print after CLI scan']) && $this->Loader->InstanceCache['Print after CLI scan'] !== '') {
echo "\n" . $this->Loader->InstanceCache['Print after CLI scan'] . "\n";
$this->Loader->InstanceCache['Print after CLI scan'] = '';
}
continue;
}

Expand Down

0 comments on commit a32e007

Please sign in to comment.