mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
register environment path while install
This commit is contained in:
parent
ed51804c85
commit
4e03eeb837
3 changed files with 76 additions and 8 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue