@@ -64,6 +64,18 @@ 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 !");
72+ /// WriteLine("Hello !!!", Color.Highlighted);
73+ /// </code>
74+ /// </example>
75+ /// </summary>
76+ /// <param name="line">Any value that will be converted to a line.</param>
77+ void WriteLine ( params Text [ ] line ) ;
78+
6779 /// <summary>
6880 /// Writes an error to stdErr. This error will affect the summary run statistics.
6981 /// <example>
@@ -77,6 +89,29 @@ public interface IHost
7789 /// <param name="errorId">Unique error identifier, optional.</param>
7890 void Error ( string ? error , string ? errorId = null ) ;
7991
92+ /// <summary>
93+ /// Writes an error to stdErr. This error will affect the summary run statistics.
94+ /// <example>
95+ /// <code>
96+ /// Error(new Text("Some "), new Text("error", Color.Error));
97+ /// </code>
98+ /// </example>
99+ /// </summary>
100+ /// <param name="error">Error message.</param>
101+ void Error ( params Text [ ] error ) ;
102+
103+ /// <summary>
104+ /// Writes an error to stdErr. This error will affect the summary run statistics.
105+ /// <example>
106+ /// <code>
107+ /// Error("ERR327", new Text("Some "), new Text("error", Color.Error));
108+ /// </code>
109+ /// </example>
110+ /// </summary>
111+ /// <param name="errorId">Unique error identifier, optional.</param>
112+ /// <param name="error">Error message.</param>
113+ void Error ( string errorId , params Text [ ] error ) ;
114+
80115 /// <summary>
81116 /// Writes a warning to stdOut. This warning will affect the summary run statistics.
82117 /// <example>
@@ -88,17 +123,39 @@ public interface IHost
88123 /// <param name="warning">Warning message.</param>
89124 void Warning ( string ? warning ) ;
90125
126+ /// <summary>
127+ /// Writes a warning to stdOut. This warning will affect the summary run statistics.
128+ /// <example>
129+ /// <code>
130+ /// Warning(new Text("Some "), new Text("warning", Color.Warning));
131+ /// </code>
132+ /// </example>
133+ /// </summary>
134+ /// <param name="warning">Warning message.</param>
135+ void Warning ( params Text [ ] warning ) ;
136+
91137 /// <summary>
92138 /// Writes a summary message to stdOut.
93139 /// <example>
94140 /// <code>
95- /// Info("Some info ");
141+ /// Info("Some summary ");
96142 /// </code>
97143 /// </example>
98144 /// </summary>
99145 /// <param name="summary">Summary message.</param>
100146 void Summary ( string ? summary ) ;
101147
148+ /// <summary>
149+ /// Writes a summary message to stdOut.
150+ /// <example>
151+ /// <code>
152+ /// Summary(new Text("Some "), new Text("summary", Color.Highlighted));
153+ /// </code>
154+ /// </example>
155+ /// </summary>
156+ /// <param name="summary">Summary message.</param>
157+ void Summary ( params Text [ ] summary ) ;
158+
102159 /// <summary>
103160 /// Writes an information message to stdOut.
104161 /// <example>
@@ -110,6 +167,17 @@ public interface IHost
110167 /// <param name="text">Information message.</param>
111168 void Info ( string ? text ) ;
112169
170+ /// <summary>
171+ /// Writes an information message to stdOut.
172+ /// <example>
173+ /// <code>
174+ /// Ingo(new Text("Some "), new Text("info", Color.Highlighted));
175+ /// </code>
176+ /// </example>
177+ /// </summary>
178+ /// <param name="text">Information message.</param>
179+ void Info ( params Text [ ] text ) ;
180+
113181 /// <summary>
114182 /// Writes a trace message to stdOut for the appropriate logging level.
115183 /// <example>
@@ -129,6 +197,24 @@ public interface IHost
129197 /// <param name="origin">Source of the trace message, optional.</param>
130198 void Trace ( string ? trace , string ? origin = null ) ;
131199
200+ /// <summary>
201+ /// Writes a trace message to stdOut for the appropriate logging level.
202+ /// <example>
203+ /// <code>
204+ /// Trace(new Text("Trace message", Color.Details));
205+ /// </code>
206+ /// </example>
207+ /// <example>
208+ /// When run as a script:
209+ /// <code>
210+ /// #l Diagnostic
211+ /// Trace("Tracing ", "details".WithColor(Color.Details));
212+ /// </code>
213+ /// </example>
214+ /// </summary>
215+ /// <param name="trace">Trace message.</param>
216+ void Trace ( params Text [ ] trace ) ;
217+
132218 /// <summary>
133219 /// Provides an instance of a service by its type.
134220 /// <example>
0 commit comments