Skip to content

Commit

Permalink
refactor(interactor): prompt hidden now supported in win os
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Sep 16, 2019
1 parent 742c622 commit 491d162
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/IO/Interactor.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,7 @@ public function prompt(string $text, $default = null, callable $fn = null, int $
*/
public function promptHidden(string $text, callable $fn = null, int $retry = 3)
{
$winOS = '\\' === \DIRECTORY_SEPARATOR;

// @codeCoverageIgnoreStart
if ($winOS) {
$this->writer->error('Hidden input not supported, Press Ctrl+C if you would like to abort', true);
}
// @codeCoverageIgnoreEnd

return $this->prompt($text, null, $fn, $retry, !$winOS);
return $this->prompt($text, null, $fn, $retry, true);
}

/**
Expand Down

0 comments on commit 491d162

Please sign in to comment.