File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/Cli/dotnet/Commands/Tool/Execute Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,17 @@ private bool UserAgreedToRunFromSource()
80
80
// TODO: Use a better way to ask for user input
81
81
Console . Write ( CliCommandStrings . ToolRunFromSourceUserConfirmationPrompt ) ;
82
82
bool userAccepted = Console . ReadKey ( ) . Key == ConsoleKey . Y ;
83
- Console . WriteLine ( ) ;
84
- Console . WriteLine ( new string ( '─' , CliCommandStrings . ToolRunFromSourceUserConfirmationPrompt . Length ) ) ;
83
+ if ( _verbosity >= VerbosityOptions . detailed )
84
+ {
85
+ Console . WriteLine ( ) ;
86
+ Console . WriteLine ( new String ( '-' , CliCommandStrings . ToolRunFromSourceUserConfirmationPrompt . Length ) ) ;
87
+ }
88
+ else
89
+ {
90
+ // Clear the line
91
+ Console . Write ( "\r " + new string ( ' ' , CliCommandStrings . ToolRunFromSourceUserConfirmationPrompt . Length + 1 ) + "\r " ) ;
92
+ }
93
+
85
94
return userAccepted ;
86
95
}
87
96
}
You can’t perform that action at this time.
0 commit comments