Skip to content

Commit

Permalink
Don't show feedback when prompts are not used
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 29, 2024
1 parent c74b8ba commit 9353abb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function handle(): int

$selected = ($this->argument('category') ?? $this->promptForCategory()) ?: 'all';

if ($selected !== 'all' && (bool) $this->argument('category') === false) {
if ($selected !== 'all' && (bool) $this->argument('category') === false && ConsoleHelper::canUseLaravelPrompts($this->input)) {
$this->infoComment(sprintf('Selected category [%s]', $selected));
}

Expand Down

0 comments on commit 9353abb

Please sign in to comment.