ragephoto-cli/Program.cs
2025-11-18 05:09:42 +01:00

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();
}
}