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()) {
|
switch (dataType.ToLowerInvariant()) {
|
||||||
case "d":
|
case "d":
|
||||||
case "description":
|
case "description":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Description);
|
content = Encoding.UTF8.GetBytes($"{photo.Description}\n");
|
||||||
break;
|
break;
|
||||||
case "f":
|
case "f":
|
||||||
case "format":
|
case "format":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Format switch {
|
content = Encoding.UTF8.GetBytes($"{photo.Format switch {
|
||||||
PhotoFormat.GTA5 => "gta5",
|
PhotoFormat.GTA5 => "gta5",
|
||||||
PhotoFormat.RDR2 => "rdr2",
|
PhotoFormat.RDR2 => "rdr2",
|
||||||
_ => "unknown"
|
_ => "unknown"
|
||||||
});
|
}}\n");
|
||||||
break;
|
break;
|
||||||
case "i":
|
case "i":
|
||||||
case "image":
|
case "image":
|
||||||
|
|
@ -110,15 +110,15 @@ internal static class Commands {
|
||||||
break;
|
break;
|
||||||
case "j":
|
case "j":
|
||||||
case "json":
|
case "json":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Json);
|
content = Encoding.UTF8.GetBytes($"{photo.Json}\n");
|
||||||
break;
|
break;
|
||||||
case "s":
|
case "s":
|
||||||
case "sign":
|
case "sign":
|
||||||
content = Encoding.UTF8.GetBytes($"{photo.Sign}");
|
content = Encoding.UTF8.GetBytes($"{photo.Sign}\n");
|
||||||
break;
|
break;
|
||||||
case "t":
|
case "t":
|
||||||
case "title":
|
case "title":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Title);
|
content = Encoding.UTF8.GetBytes($"{photo.Title}\n");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
Console.Error.WriteLine($"Unknown Content Type: {dataType}");
|
Console.Error.WriteLine($"Unknown Content Type: {dataType}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue