Files
ZuneUIXTools/UIXC/Program.cs
T

31 lines
727 B
C#
Raw Normal View History

2024-02-22 08:27:49 -06:00
using Spectre.Console.Cli;
using UIXC.Commands;
2024-02-22 08:07:38 -06:00
namespace UIXC;
internal class Program
{
static int Main(string[] args)
{
2024-02-22 08:27:49 -06:00
var app = new CommandApp<CompileCommand>();
app.Configure(config =>
2024-02-22 08:07:38 -06:00
{
config.AddCommand<CompileCommand>("compile")
.WithAlias("c")
.WithDescription("Compiles the given source to UIB.");
2024-02-22 11:13:31 -06:00
config.AddCommand<DecompileCommand>("decompile")
.WithAlias("d")
.WithDescription("Decompiles the given compiled UIX to a source langauge.");
2024-02-22 08:27:49 -06:00
#if DEBUG
config.PropagateExceptions();
config.ValidateExamples();
#endif
});
2024-02-22 08:07:38 -06:00
2024-02-22 08:27:49 -06:00
return app.Run(args);
2024-02-22 08:07:38 -06:00
}
}