mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
27 lines
540 B
C#
27 lines
540 B
C#
using Spectre.Console.Cli;
|
|
using UIXC.Commands;
|
|
|
|
namespace UIXC;
|
|
|
|
internal class Program
|
|
{
|
|
static int Main(string[] args)
|
|
{
|
|
var app = new CommandApp<CompileCommand>();
|
|
|
|
app.Configure(config =>
|
|
{
|
|
config.AddCommand<CompileCommand>("compile")
|
|
.WithAlias("c")
|
|
.WithDescription("Compiles the given source to UIB.");
|
|
|
|
#if DEBUG
|
|
config.PropagateExceptions();
|
|
config.ValidateExamples();
|
|
#endif
|
|
});
|
|
|
|
return app.Run(args);
|
|
}
|
|
}
|