in src/PowerShell/Attributes/BreakingChangeBaseAttribute.cs [137:193]
public void PrintCustomAttributeInfo(Type type, bool withCmdletName, Action<string> writeOutput)
{
if (!withCmdletName)
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesDeclarationMessage,
GetAttributeSpecificMessage()));
}
else
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesDeclarationMessageWithCmdletName,
GetNameFromCmdletType(type),
GetAttributeSpecificMessage()));
}
if (!string.IsNullOrWhiteSpace(ChangeDescription))
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesChangeDescriptionMessage,
ChangeDescription));
}
if (ChangeInEfectByDate.HasValue)
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesInEffectByDateMessage,
ChangeInEfectByDate.Value));
}
if (!string.IsNullOrEmpty(DeprecateByVersion))
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesInEffectByVersion,
DeprecateByVersion));
}
if (OldWay != null && NewWay != null)
{
writeOutput(
string.Format(
CultureInfo.CurrentCulture,
Resources.BreakingChangesAttributesUsageChangeMessageConsole,
OldWay,
NewWay));
}
}