Skip to content

Commit df84832

Browse files
authored
Merge pull request #44 from Derroylo/bugfix/43-fix-display-errors-when-using-status-and-shell-commands-like-in-the-change-php-version-command
Fix display errors when using status and shell commands like in the change php version command
2 parents 64b1bcb + 9f181d1 commit df84832

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

helper/ExecCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public static string Exec(string command)
1616
proc.StartInfo.UseShellExecute = false;
1717
proc.StartInfo.RedirectStandardOutput = true;
1818
proc.StartInfo.RedirectStandardError = true;
19+
proc.StartInfo.RedirectStandardInput = true;
1920
proc.Start();
2021

2122
result += proc.StandardOutput.ReadToEnd();

helper/PhpHelper.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public static List<string> GetAvailablePhpVersions()
3535
public static void SetNewPhpVersion(string newVersion, bool isDebug)
3636
{
3737
AnsiConsole.Status()
38+
.AutoRefresh(true)
3839
.Start("Setting PHP Version to " + newVersion, ctx =>
3940
{
4041
var availablePhpVersions = PhpHelper.GetAvailablePhpVersions();

0 commit comments

Comments
 (0)