mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-12-04 16:51:48 +01:00
15 lines
495 B
C#
15 lines
495 B
C#
using System.CommandLine;
|
|
using System.Runtime.InteropServices;
|
|
namespace RagePhoto.Cli;
|
|
|
|
internal static class Program {
|
|
|
|
private static void Main(String[] args) {
|
|
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();
|
|
}
|
|
}
|