register environment path while install

This commit is contained in:
Syping 2025-11-18 05:09:42 +01:00
parent ed51804c85
commit 4e03eeb837
3 changed files with 76 additions and 8 deletions

View file

@ -1,4 +1,5 @@
using System.CommandLine;
using System.Runtime.InteropServices;
namespace RagePhoto.Cli;
internal static class Program {
@ -7,6 +8,8 @@ internal static class Program {
RootCommand rootCommand = new("ragephoto-cli Application") {
Commands.CreateCommand, Commands.GetCommand, Commands.SetCommand
};
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
rootCommand.Add(Commands.PathCommand);
rootCommand.Parse(args).Invoke();
}
}