@@ -76,6 +76,11 @@ public sealed class HostStartupInfo
76
76
/// </summary>
77
77
public bool ConsoleReplEnabled { get ; }
78
78
79
+ /// <summary>
80
+ /// True if we want to suppress messages to PSHost (to prevent Stdio clobbering)
81
+ /// </summary>
82
+ public bool UseNullPSHostUI { get ; }
83
+
79
84
/// <summary>
80
85
/// If true, the legacy PSES readline implementation will be used. Otherwise PSReadLine will be used.
81
86
/// If the console REPL is not enabled, this setting will be ignored.
@@ -139,6 +144,7 @@ public sealed class HostStartupInfo
139
144
/// <param name="logPath">The path to log to.</param>
140
145
/// <param name="logLevel">The minimum log event level.</param>
141
146
/// <param name="consoleReplEnabled">Enable console if true.</param>
147
+ /// <param name="useNullPSHostUI">Whether or not to use the Null UI.</param>
142
148
/// <param name="usesLegacyReadLine">Use PSReadLine if false, otherwise use the legacy readline implementation.</param>
143
149
/// <param name="bundledModulePath">A custom path to the expected bundled modules.</param>
144
150
public HostStartupInfo (
@@ -153,6 +159,7 @@ public HostStartupInfo(
153
159
string logPath ,
154
160
int logLevel ,
155
161
bool consoleReplEnabled ,
162
+ bool useNullPSHostUI ,
156
163
bool usesLegacyReadLine ,
157
164
string bundledModulePath )
158
165
{
@@ -167,6 +174,7 @@ public HostStartupInfo(
167
174
LogPath = logPath ;
168
175
LogLevel = logLevel ;
169
176
ConsoleReplEnabled = consoleReplEnabled ;
177
+ UseNullPSHostUI = useNullPSHostUI ;
170
178
UsesLegacyReadLine = usesLegacyReadLine ;
171
179
172
180
// Respect a user provided bundled module path.
0 commit comments