Skip to content

Commit

Permalink
add: more steps prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsShamed committed Jun 14, 2022
1 parent 9eb2799 commit c126dc3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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!
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)
4 changes: 4 additions & 0 deletions OsuPackImporter/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ flag:
OsuPackImporter --no-rename "<path to archive>"
```

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.

Expand Down

0 comments on commit c126dc3

Please sign in to comment.