Skip to content

Commit 9c1f86f

Browse files
committed
Small changes
1 parent 4f5ca11 commit 9c1f86f

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

PostTripletex/Command.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public static class Command
66
{
77
public static void Welcome()
88
{
9-
Console.WriteLine("Post/Delete Tripletex");
9+
Console.WriteLine("Tripletex services");
1010
Console.WriteLine(" Commands:");
1111
Console.WriteLine(" q - quit program");
1212
Console.WriteLine(" sync - manual sync");

PostTripletex/FileDoc.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ public static async Task<string[]> GetTokens()
8383

8484
var tokens = new string[2];
8585

86-
Console.WriteLine("consumerToken");
86+
Console.WriteLine("ConsumerToken");
8787
Console.Write("> ");
8888
tokens[0] = Console.ReadLine()?.Trim();
8989

9090
Console.WriteLine();
9191

92-
Console.WriteLine("employeeToken");
92+
Console.WriteLine("EmployeeToken");
9393
Console.Write("> ");
9494
tokens[1] = Console.ReadLine()?.Trim();
9595

PostTripletex/Program.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ static async Task Main()
1212
await Authentication.Authenticate();
1313
await Get.Sync();
1414

15+
Console.Clear();
1516
Command.Welcome();
1617

1718
while (true)
@@ -38,18 +39,20 @@ private static async Task Run()
3839
if (command?[0] == "sync")
3940
{
4041
await Get.Sync();
41-
Console.WriteLine("Sync complete\n");
42+
Console.WriteLine("Done\n");
4243
Console.Write("> ");
4344
return;
4445
}
4546

4647
if (command?[0] == "token")
4748
{
4849
File.Delete(Path.Combine("Data", "Tokens.txt"));
49-
Console.WriteLine("Tokens deleted\n");
50+
Console.WriteLine("Done\n");
5051

5152
await Authentication.Authenticate();
5253
await Get.Sync();
54+
Console.Clear();
55+
Command.Welcome();
5356
return;
5457
}
5558

PostTripletex/Put.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static async Task Subscription(string url)
3030
if (!response.IsSuccessful) ErrorHandler.Handel(response.Content);
3131
}
3232

33-
Console.WriteLine("Url change complete\n");
33+
Console.WriteLine("Done\n");
3434
Console.Write("> ");
3535
}
3636
}

0 commit comments

Comments
 (0)