for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Startwind\Forrest\Command;
use GuzzleHttp\Client;
class GistCommand extends Command
{
public function __construct(
string $name,
string $description,
private readonly string $rawUrl,
private readonly Client $client
) {
parent::__construct($name, $description, '');
}
/**
* @inheritDoc
*/
public function getPrompt(array $values = []): string
$response = $this->client->get($this->rawUrl);
return (string)$response->getBody();