Skip to content

Commit d018d66

Browse files
committed
polish
1 parent 3d75c4a commit d018d66

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/Common/CustomAttributes/PreviewAttributeHelper.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using System.Reflection;
20+
using System.Text;
2021

2122
namespace Microsoft.WindowsAzure.Commands.Common.CustomAttributes
2223
{
@@ -33,13 +34,17 @@ internal class PreviewAttributeHelper
3334
public static void ProcessCustomAttributesAtRuntime(Type type, InvocationInfo invocationInfo, Action<string> writeOutput)
3435
{
3536
List<CmdletPreviewAttribute> attributes = new List<CmdletPreviewAttribute>(GetAllAttributesInType(type, invocationInfo));
37+
StringBuilder sb = new StringBuilder();
38+
Action<string> appendBreakingChangeInfo = (string s) => sb.Append(s);
3639

3740
if (attributes != null && attributes.Count > 0)
3841
{
3942
foreach (CmdletPreviewAttribute attribute in attributes)
4043
{
41-
attribute.PrintCustomAttributeInfo(writeOutput);
44+
attribute.PrintCustomAttributeInfo(appendBreakingChangeInfo);
4245
}
46+
writeOutput(sb.ToString());
47+
4348
}
4449
}
4550

src/Common/Properties/Resources.Designer.cs

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Common/Properties/Resources.resx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,14 @@ The type of the parameter is changing from '{0}' to '{1}'.</value>
17331733
Note : Go to {0} for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.</value>
17341734
</data>
17351735
<data name="PreviewCmdletMessage" xml:space="preserve">
1736+
<<<<<<< Updated upstream
17361737
<value>This cmdlet is in preview and under development. Its behavior may change in response to customer feedback.</value>
1738+
=======
1739+
<value>This cmdlet is in preview. Its behavior is subject to change based on customer feedback.</value>
1740+
</data>
1741+
<data name="PreviewCmdletETAMessage" xml:space="preserve">
1742+
<value> The estimated generally available date is '{0}'</value>
1743+
>>>>>>> Stashed changes
17371744
</data>
17381745
<data name="BreakingChangesAttributesInEffectByAzVersion" xml:space="preserve">
17391746
<value>

0 commit comments

Comments
 (0)