mirror of
https://github.com/ZuneDev/ZuneUIXTools.git
synced 2026-07-27 13:11:59 -07:00
35 lines
1020 B
C#
35 lines
1020 B
C#
using Spectre.Console.Cli;
|
|
using System.ComponentModel;
|
|
|
|
namespace UIXC;
|
|
|
|
public abstract class CommonSettings : CommandSettings
|
|
{
|
|
[CommandOption("--verbose")]
|
|
[DefaultValue(false)]
|
|
public bool Verbose { get; init; }
|
|
}
|
|
|
|
public abstract class CompilerSettings : CommonSettings
|
|
{
|
|
[Description("The directory to output to.")]
|
|
[CommandOption("-o|--output <outputDir>")]
|
|
public string? OutputDir { get; init; }
|
|
|
|
[Description("The shared binary data table to use.")]
|
|
[CommandOption("-t|--dataTable")]
|
|
public string? DataTable { get; init; }
|
|
|
|
[Description("Directories to search for imported files in.")]
|
|
[CommandOption("-I <VALUES>")]
|
|
public required string[] IncludeDirectories { get; init; }
|
|
|
|
[Description("External assemblies to load.")]
|
|
[CommandOption("-A <VALUES>")]
|
|
public required string[] Assemblies { get; init; }
|
|
|
|
[Description("Redirects imports.")]
|
|
[CommandOption("--ir <VALUES>")]
|
|
public required string[] ImportRedirects { get; init; }
|
|
}
|