From c126dc395fd2864c8d6923adf630f95e908717f1 Mon Sep 17 00:00:00 2001 From: Ryuki Date: Tue, 14 Jun 2022 21:27:15 +0200 Subject: [PATCH] add: more steps prompts --- CHANGELOG.md | 15 +++++++++++++-- OsuPackImporter/Program.cs | 4 ++++ README.md | 3 +++ 3 files changed, 20 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1820720..816b5c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,19 @@ ### What's new? * __If you run the executable without arguments (e.g: from the file explorer), you'll be guided on providing -the arguments it needs via prompts.__ +the arguments it needs via terminal prompts.__ * The program now checks for duplicate collections and will ask you if you want to continue if it finds one. You can also disable this behaviour by passing the `--skip-duplicate-check` flag. * Backups now include the date in the filename to not overwrite the old ones. -Be sure to clean up your backups from time to time! \ No newline at end of file +Be sure to clean up your backups from time to time! + + + +#### Comments + +I wanted to do a graphical interface but Rider doesn't support Windows Forms Designer for +.NET Core and JetBrains doesn't seem to care at all about this even tho it's a highly requested +feature. But I don't want to use Visual Studio because man it looks so old lmao. + +Might do a mix of terminal and dialogs later! (until Windows Forms Designer is supported in +Rider) \ No newline at end of file diff --git a/OsuPackImporter/Program.cs b/OsuPackImporter/Program.cs index b120dc6..c8b8c59 100644 --- a/OsuPackImporter/Program.cs +++ b/OsuPackImporter/Program.cs @@ -26,6 +26,10 @@ public static void Main(string[] args) if (args.Length == 0 && AnsiConsole.Confirm("Did you meant to run the program without arguments? " + "(e.g: you opened the program from the file explorer)")) { + Logging.Log("You'll now go through providing the necessary information for the program to" + + " work."); + AnsiConsole.MarkupLine("[italic]Press any key to continue...[/]"); + Console.ReadKey(true); GuidedRun(ref args); } diff --git a/README.md b/README.md index 76c9816..0033fa3 100644 --- a/README.md +++ b/README.md @@ -54,6 +54,9 @@ flag: OsuPackImporter --no-rename "" ``` +If you don't provide arguments, it will go in a kind of interactive mode to set +those arguments for you. + __Note__: You will need to close the game before running the program, especially if you're not using conversion to a `.osdb` file. The program will pause by itself anyway.