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