mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
put newlines at string outputs
This commit is contained in:
parent
e5e960381a
commit
eb171fe78a
1 changed files with 6 additions and 6 deletions
12
Commands.cs
12
Commands.cs
|
|
@ -93,15 +93,15 @@ internal static class Commands {
|
|||
switch (dataType.ToLowerInvariant()) {
|
||||
case "d":
|
||||
case "description":
|
||||
content = Encoding.UTF8.GetBytes(photo.Description);
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Description}\n");
|
||||
break;
|
||||
case "f":
|
||||
case "format":
|
||||
content = Encoding.UTF8.GetBytes(photo.Format switch {
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Format switch {
|
||||
PhotoFormat.GTA5 => "gta5",
|
||||
PhotoFormat.RDR2 => "rdr2",
|
||||
_ => "unknown"
|
||||
});
|
||||
}}\n");
|
||||
break;
|
||||
case "i":
|
||||
case "image":
|
||||
|
|
@ -110,15 +110,15 @@ internal static class Commands {
|
|||
break;
|
||||
case "j":
|
||||
case "json":
|
||||
content = Encoding.UTF8.GetBytes(photo.Json);
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Json}\n");
|
||||
break;
|
||||
case "s":
|
||||
case "sign":
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Sign}");
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Sign}\n");
|
||||
break;
|
||||
case "t":
|
||||
case "title":
|
||||
content = Encoding.UTF8.GetBytes(photo.Title);
|
||||
content = Encoding.UTF8.GetBytes($"{photo.Title}\n");
|
||||
break;
|
||||
default:
|
||||
Console.Error.WriteLine($"Unknown Content Type: {dataType}");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue