@@ -64,6 +64,17 @@ public interface IHost
6464 /// <typeparam name="T">The type of the value to be converted to a line.</typeparam>
6565 void WriteLine < T > ( T line , Color color = Color . Default ) ;
6666
67+ /// <summary>
68+ /// Writes a line to stdOut.
69+ /// <example>
70+ /// <code>
71+ /// WriteLine("Hello !".WithColor(Color.Highlighted));
72+ /// </code>
73+ /// </example>
74+ /// </summary>
75+ /// <param name="line">Any value that will be converted to a line.</param>
76+ void WriteLine ( params Text [ ] line ) ;
77+
6778 /// <summary>
6879 /// Writes an error to stdErr. This error will affect the summary run statistics.
6980 /// <example>
@@ -77,6 +88,29 @@ public interface IHost
7788 /// <param name="errorId">Unique error identifier, optional.</param>
7889 void Error ( string ? error , string ? errorId = null ) ;
7990
91+ /// <summary>
92+ /// Writes an error to stdErr. This error will affect the summary run statistics.
93+ /// <example>
94+ /// <code>
95+ /// Error(new Text("Some "), new Text("error", Color.Error));
96+ /// </code>
97+ /// </example>
98+ /// </summary>
99+ /// <param name="error">Error message.</param>
100+ void Error ( params Text [ ] error ) ;
101+
102+ /// <summary>
103+ /// Writes an error to stdErr. This error will affect the summary run statistics.
104+ /// <example>
105+ /// <code>
106+ /// Error("ERR327", new Text("Some "), new Text("error", Color.Error));
107+ /// </code>
108+ /// </example>
109+ /// </summary>
110+ /// <param name="errorId">Unique error identifier, optional.</param>
111+ /// <param name="error">Error message.</param>
112+ void Error ( string errorId , params Text [ ] error ) ;
113+
80114 /// <summary>
81115 /// Writes a warning to stdOut. This warning will affect the summary run statistics.
82116 /// <example>
@@ -88,17 +122,39 @@ public interface IHost
88122 /// <param name="warning">Warning message.</param>
89123 void Warning ( string ? warning ) ;
90124
125+ /// <summary>
126+ /// Writes a warning to stdOut. This warning will affect the summary run statistics.
127+ /// <example>
128+ /// <code>
129+ /// Warning(new Text("Some "), new Text("warning", Color.Warning));
130+ /// </code>
131+ /// </example>
132+ /// </summary>
133+ /// <param name="warning">Warning message.</param>
134+ void Warning ( params Text [ ] warning ) ;
135+
91136 /// <summary>
92137 /// Writes a summary message to stdOut.
93138 /// <example>
94139 /// <code>
95- /// Info("Some info ");
140+ /// Info("Some summary ");
96141 /// </code>
97142 /// </example>
98143 /// </summary>
99144 /// <param name="summary">Summary message.</param>
100145 void Summary ( string ? summary ) ;
101146
147+ /// <summary>
148+ /// Writes a summary message to stdOut.
149+ /// <example>
150+ /// <code>
151+ /// Summary(new Text("Some "), new Text("summary", Color.Highlighted));
152+ /// </code>
153+ /// </example>
154+ /// </summary>
155+ /// <param name="summary">Summary message.</param>
156+ void Summary ( params Text [ ] summary ) ;
157+
102158 /// <summary>
103159 /// Writes an information message to stdOut.
104160 /// <example>
@@ -110,6 +166,17 @@ public interface IHost
110166 /// <param name="text">Information message.</param>
111167 void Info ( string ? text ) ;
112168
169+ /// <summary>
170+ /// Writes an information message to stdOut.
171+ /// <example>
172+ /// <code>
173+ /// Ingo(new Text("Some "), new Text("info", Color.Highlighted));
174+ /// </code>
175+ /// </example>
176+ /// </summary>
177+ /// <param name="text">Information message.</param>
178+ void Info ( params Text [ ] text ) ;
179+
113180 /// <summary>
114181 /// Writes a trace message to stdOut for the appropriate logging level.
115182 /// <example>
@@ -129,6 +196,24 @@ public interface IHost
129196 /// <param name="origin">Source of the trace message, optional.</param>
130197 void Trace ( string ? trace , string ? origin = null ) ;
131198
199+ /// <summary>
200+ /// Writes a trace message to stdOut for the appropriate logging level.
201+ /// <example>
202+ /// <code>
203+ /// Trace(new Text("Trace message", Color.Details));
204+ /// </code>
205+ /// </example>
206+ /// <example>
207+ /// When run as a script:
208+ /// <code>
209+ /// #l Diagnostic
210+ /// Trace("Tracing ", "details".WithColor(Color.Details));
211+ /// </code>
212+ /// </example>
213+ /// </summary>
214+ /// <param name="trace">Trace message.</param>
215+ void Trace ( params Text [ ] trace ) ;
216+
132217 /// <summary>
133218 /// Provides an instance of a service by its type.
134219 /// <example>
0 commit comments