CLI: Add Status Code to output
This commit is contained in:
parent
f4bc182954
commit
e274c864f9
@ -112,6 +112,7 @@ internal sealed class TrangaCli : Command<TrangaCli.Settings>
|
|||||||
if (AnsiConsole.Confirm("Send Request?"))
|
if (AnsiConsole.Confirm("Send Request?"))
|
||||||
response = client.Send(request);
|
response = client.Send(request);
|
||||||
else break;
|
else break;
|
||||||
|
AnsiConsole.WriteLine($"Response: {(int)response.StatusCode} {response.StatusCode}");
|
||||||
AnsiConsole.WriteLine(response.Content.ReadAsStringAsync().Result);
|
AnsiConsole.WriteLine(response.Content.ReadAsStringAsync().Result);
|
||||||
break;
|
break;
|
||||||
case "Log":
|
case "Log":
|
||||||
|
Loading…
Reference in New Issue
Block a user