Laravel\Envoy\Console\Command::confirmTaskWithUser PHP Method

confirmTaskWithUser() public method

Confirm the operation with the user.
public confirmTaskWithUser ( string $task, string $question ) : boolean
$task string
$question string
return boolean
    public function confirmTaskWithUser($task, $question)
    {
        $question = $question === true ? 'Are you sure you want to run the [' . $task . '] task?' : (string) $question;
        $question = '<comment>' . $question . ' [y/N]:</comment> ';
        $question = new ConfirmationQuestion($question, false);
        return $this->getHelperSet()->get('question')->ask($this->input, $this->output, $question);
    }