@@ -76,6 +76,11 @@ public sealed class HostStartupInfo
7676 /// </summary>
7777 public bool ConsoleReplEnabled { get ; }
7878
79+ /// <summary>
80+ /// True if we want to suppress messages to PSHost (to prevent Stdio clobbering)
81+ /// </summary>
82+ public bool UseNullPSHostUI { get ; }
83+
7984 /// <summary>
8085 /// If true, the legacy PSES readline implementation will be used. Otherwise PSReadLine will be used.
8186 /// If the console REPL is not enabled, this setting will be ignored.
@@ -139,6 +144,7 @@ public sealed class HostStartupInfo
139144 /// <param name="logPath">The path to log to.</param>
140145 /// <param name="logLevel">The minimum log event level.</param>
141146 /// <param name="consoleReplEnabled">Enable console if true.</param>
147+ /// <param name="useNullPSHostUI">Whether or not to use the Null UI.</param>
142148 /// <param name="usesLegacyReadLine">Use PSReadLine if false, otherwise use the legacy readline implementation.</param>
143149 /// <param name="bundledModulePath">A custom path to the expected bundled modules.</param>
144150 public HostStartupInfo (
@@ -153,6 +159,7 @@ public HostStartupInfo(
153159 string logPath ,
154160 int logLevel ,
155161 bool consoleReplEnabled ,
162+ bool useNullPSHostUI ,
156163 bool usesLegacyReadLine ,
157164 string bundledModulePath )
158165 {
@@ -167,6 +174,7 @@ public HostStartupInfo(
167174 LogPath = logPath ;
168175 LogLevel = logLevel ;
169176 ConsoleReplEnabled = consoleReplEnabled ;
177+ UseNullPSHostUI = useNullPSHostUI ;
170178 UsesLegacyReadLine = usesLegacyReadLine ;
171179
172180 // Respect a user provided bundled module path.
0 commit comments