Skip to content

Commit

Permalink
Fixing wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
vgmello committed Nov 6, 2023
1 parent b6cbc7c commit e24a005
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ private async Task GenerateDbPassword(string? credential, string? hostname, int?
var regionEndpoint = RegionEndpoint.GetBySystemName(region);
var dbPassword = _rdsTokenGenerator.GenerateDbPassword(awsCredentials, regionEndpoint, hostname, port.Value, username, ttl);

AnsiConsole.MarkupLine($"\r\n[green]DB Password:[/]\r\n{dbPassword}\r\n");
AnsiConsole.MarkupLine("\r\n[green]DB Password:[/]");
Console.WriteLine(dbPassword);
}
catch (ArgumentNullException e)
{
Expand Down
6 changes: 6 additions & 0 deletions src/Ellosoft.AwsCredentialsManager/GlobalSuppressions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
using System.Diagnostics.CodeAnalysis;

[assembly: SuppressMessage("Usage", "Spectre1000:Use AnsiConsole instead of System.Console",
Justification = "Required for non-wrapped text output", Scope = "member",
Target = "~M:Ellosoft.AwsCredentialsManager.Commands.RDS.GetRdsPassword.GenerateDbPassword" +
"(System.String,System.String,System.Nullable{System.Int32},System.String,System.String,System.Int32)~System.Threading.Tasks.Task")]

0 comments on commit e24a005

Please sign in to comment.