@@ -64,6 +64,18 @@ public interface IHost
64
64
/// <typeparam name="T">The type of the value to be converted to a line.</typeparam>
65
65
void WriteLine < T > ( T line , Color color = Color . Default ) ;
66
66
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
+
67
79
/// <summary>
68
80
/// Writes an error to stdErr. This error will affect the summary run statistics.
69
81
/// <example>
@@ -77,6 +89,29 @@ public interface IHost
77
89
/// <param name="errorId">Unique error identifier, optional.</param>
78
90
void Error ( string ? error , string ? errorId = null ) ;
79
91
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
+
80
115
/// <summary>
81
116
/// Writes a warning to stdOut. This warning will affect the summary run statistics.
82
117
/// <example>
@@ -88,17 +123,39 @@ public interface IHost
88
123
/// <param name="warning">Warning message.</param>
89
124
void Warning ( string ? warning ) ;
90
125
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
+
91
137
/// <summary>
92
138
/// Writes a summary message to stdOut.
93
139
/// <example>
94
140
/// <code>
95
- /// Info("Some info ");
141
+ /// Info("Some summary ");
96
142
/// </code>
97
143
/// </example>
98
144
/// </summary>
99
145
/// <param name="summary">Summary message.</param>
100
146
void Summary ( string ? summary ) ;
101
147
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
+
102
159
/// <summary>
103
160
/// Writes an information message to stdOut.
104
161
/// <example>
@@ -110,6 +167,17 @@ public interface IHost
110
167
/// <param name="text">Information message.</param>
111
168
void Info ( string ? text ) ;
112
169
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
+
113
181
/// <summary>
114
182
/// Writes a trace message to stdOut for the appropriate logging level.
115
183
/// <example>
@@ -129,6 +197,24 @@ public interface IHost
129
197
/// <param name="origin">Source of the trace message, optional.</param>
130
198
void Trace ( string ? trace , string ? origin = null ) ;
131
199
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
+
132
218
/// <summary>
133
219
/// Provides an instance of a service by its type.
134
220
/// <example>
0 commit comments