aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ErrorResponseCodeGenerator/ErrorResponseCodeGenerator.csproj4
-rw-r--r--ErrorResponseCodeGenerator/Program.cs6
-rw-r--r--Timeline/Models/Http/ErrorResponse.cs5
3 files changed, 13 insertions, 2 deletions
diff --git a/ErrorResponseCodeGenerator/ErrorResponseCodeGenerator.csproj b/ErrorResponseCodeGenerator/ErrorResponseCodeGenerator.csproj
index e77a1ba3..8524b2e4 100644
--- a/ErrorResponseCodeGenerator/ErrorResponseCodeGenerator.csproj
+++ b/ErrorResponseCodeGenerator/ErrorResponseCodeGenerator.csproj
@@ -6,6 +6,10 @@
</PropertyGroup>
<ItemGroup>
+ <PackageReference Include="TextCopy" Version="3.0.0" />
+ </ItemGroup>
+
+ <ItemGroup>
<ProjectReference Include="..\Timeline.ErrorCodes\Timeline.ErrorCodes.csproj" />
</ItemGroup>
diff --git a/ErrorResponseCodeGenerator/Program.cs b/ErrorResponseCodeGenerator/Program.cs
index cf021927..5ea8aaca 100644
--- a/ErrorResponseCodeGenerator/Program.cs
+++ b/ErrorResponseCodeGenerator/Program.cs
@@ -57,6 +57,12 @@ $
".Replace("$", code);
Console.WriteLine(code);
+
+ TextCopy.Clipboard.SetText(code);
+ var oldColor = Console.ForegroundColor;
+ Console.ForegroundColor = ConsoleColor.Green;
+ Console.WriteLine("Code has copied to clipboard!");
+ Console.ForegroundColor = oldColor;
}
}
}
diff --git a/Timeline/Models/Http/ErrorResponse.cs b/Timeline/Models/Http/ErrorResponse.cs
index 87516638..a20b5386 100644
--- a/Timeline/Models/Http/ErrorResponse.cs
+++ b/Timeline/Models/Http/ErrorResponse.cs
@@ -1,4 +1,5 @@
-using static Timeline.Resources.Messages;
+
+using static Timeline.Resources.Messages;
namespace Timeline.Models.Http
{
@@ -258,4 +259,4 @@ namespace Timeline.Models.Http
}
-} \ No newline at end of file
+}