@@ -64,6 +64,19 @@ 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
+ /// <typeparam name="T">The type of the value to be converted to a line.</typeparam>
78
+ void WriteLine < T > ( params Text [ ] line ) ;
79
+
67
80
/// <summary>
68
81
/// Writes an error to stdErr. This error will affect the summary run statistics.
69
82
/// <example>
@@ -77,6 +90,17 @@ public interface IHost
77
90
/// <param name="errorId">Unique error identifier, optional.</param>
78
91
void Error ( string ? error , string ? errorId = null ) ;
79
92
93
+ /// <summary>
94
+ /// Writes an error to stdErr. This error will affect the summary run statistics.
95
+ /// <example>
96
+ /// <code>
97
+ /// Error(new Text("Some "), new Text("error", Color.Error));
98
+ /// </code>
99
+ /// </example>
100
+ /// </summary>
101
+ /// <param name="error">Error message.</param>
102
+ void Error ( params Text [ ] error ) ;
103
+
80
104
/// <summary>
81
105
/// Writes a warning to stdOut. This warning will affect the summary run statistics.
82
106
/// <example>
@@ -88,17 +112,39 @@ public interface IHost
88
112
/// <param name="warning">Warning message.</param>
89
113
void Warning ( string ? warning ) ;
90
114
115
+ /// <summary>
116
+ /// Writes a warning to stdOut. This warning will affect the summary run statistics.
117
+ /// <example>
118
+ /// <code>
119
+ /// Warning(new Text("Some "), new Text("warning", Color.Warning));
120
+ /// </code>
121
+ /// </example>
122
+ /// </summary>
123
+ /// <param name="warning">Warning message.</param>
124
+ void Warning ( params Text [ ] warning ) ;
125
+
91
126
/// <summary>
92
127
/// Writes a summary message to stdOut.
93
128
/// <example>
94
129
/// <code>
95
- /// Info("Some info ");
130
+ /// Info("Some summary ");
96
131
/// </code>
97
132
/// </example>
98
133
/// </summary>
99
134
/// <param name="summary">Summary message.</param>
100
135
void Summary ( string ? summary ) ;
101
136
137
+ /// <summary>
138
+ /// Writes a summary message to stdOut.
139
+ /// <example>
140
+ /// <code>
141
+ /// Summary(new Text("Some "), new Text("summary", Color.Highlighted));
142
+ /// </code>
143
+ /// </example>
144
+ /// </summary>
145
+ /// <param name="summary">Summary message.</param>
146
+ void Summary ( params Text [ ] summary ) ;
147
+
102
148
/// <summary>
103
149
/// Writes an information message to stdOut.
104
150
/// <example>
@@ -110,6 +156,17 @@ public interface IHost
110
156
/// <param name="text">Information message.</param>
111
157
void Info ( string ? text ) ;
112
158
159
+ /// <summary>
160
+ /// Writes an information message to stdOut.
161
+ /// <example>
162
+ /// <code>
163
+ /// Ingo(new Text("Some "), new Text("info", Color.Highlighted));
164
+ /// </code>
165
+ /// </example>
166
+ /// </summary>
167
+ /// <param name="text">Information message.</param>
168
+ void Info ( params Text [ ] text ) ;
169
+
113
170
/// <summary>
114
171
/// Writes a trace message to stdOut for the appropriate logging level.
115
172
/// <example>
0 commit comments