We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fc3d6a commit 7d332d5Copy full SHA for 7d332d5
src/app/Console/Commands/Traits/PrettyCommandOutput.php
@@ -230,6 +230,22 @@ public function deleteLines(int $amount = 1)
230
$this->output->write(str_repeat("\033[A\33[2K\r", $amount));
231
}
232
233
+ /**
234
+ *
235
236
+ * @return void
237
+ */
238
+ public function askHint(string $question, array $hints, string $default)
239
+ {
240
+ $hints = collect($hints)
241
+ ->map(function ($hint) {
242
+ return " <fg=gray>│ $hint</>";
243
+ })
244
+ ->join(PHP_EOL);
245
+
246
+ return $this->ask($question.PHP_EOL.$hints, $default);
247
+ }
248
249
/**
250
* Deletes one or multiple chars.
251
*
0 commit comments