aboutsummaryrefslogtreecommitdiff
path: root/ErrorResponseCodeGenerator/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ErrorResponseCodeGenerator/Program.cs')
-rw-r--r--ErrorResponseCodeGenerator/Program.cs6
1 files changed, 6 insertions, 0 deletions
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;
}
}
}