File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
PSModuleDevelopment/functions/utility Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 130
130
$null = $sb.Append (" <c='$color '>-$ ( $parameter.Name ) </c>" )
131
131
132
132
if ($parmFoundInCommandText ) {
133
- $color = " $colorFoundAsterisk "
134
- $null = $sb.Append (" <c='$color '>* </c>" )
133
+ $null = $sb.Append (" <c='$colorFoundAsterisk '>* </c>" )
135
134
}
136
135
elseif ($parameter.IsMandatory -eq $true ) {
137
- $color = " $colorNotFoundAsterisk "
138
- $null = $sb.Append (" <c='$color '>* </c>" )
136
+ $null = $sb.Append (" <c='$colorNotFoundAsterisk '>* </c>" )
139
137
}
140
138
else {
141
139
$null = $sb.Append (" " )
147
145
}
148
146
149
147
$null = $sb.AppendLine (" " )
150
- Write-PSFMessage - Level Host - Message " $ ( $sb.ToString ()) "
148
+ Write-PSFHostColor - String " $ ( $sb.ToString ()) "
151
149
}
152
150
153
151
$null = $sbHelp.AppendLine (" " )
183
181
}
184
182
185
183
$null = $sb.AppendLine (" " )
186
- Write-PSFMessage - Level Host - Message " $ ( $sb.ToString ()) "
184
+ Write-PSFHostColor - String " $ ( $sb.ToString ()) "
187
185
}
188
186
189
187
$null = $sbHelp.AppendLine (" " )
196
194
}
197
195
198
196
if ($sbParmsNotFound.Length -gt 0 ) {
199
- Write-PSFMessage - Level Host - Message " $ ( $sbParmsNotFound.ToString ()) "
197
+ Write-PSFHostColor - String " $ ( $sbParmsNotFound.ToString ()) "
200
198
}
201
199
202
- if ($IncludeHelp ) {
203
- Write-PSFMessage - Level Host - Message " $ ( $sbHelp.ToString ()) "
200
+ if ($Legend ) {
201
+ Write-PSFHostColor - String " $ ( $sbHelp.ToString ()) "
204
202
}
205
203
}
You can’t perform that action at this time.
0 commit comments