Use the interface: ArtARTs36\GitHandler\Contracts\Commands\GitGrepCommand
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
$command = (new LocalGitFactory())->factory(__DIR__)->greps();
public function grep(string $term): \FileMatch[];
git grep -n $term
use \ArtARTs36\GitHandler\Factory\LocalGitFactory;
(new LocalGitFactory())->factory(__DIR__)->greps()->grep('term-test');