Final touches
This commit is contained in:
parent
08e5dd8ef5
commit
326cf57870
7
Parser/Elements/NullPart.cs
Normal file
7
Parser/Elements/NullPart.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace XNeedle.Parser.Elements
|
||||
{
|
||||
public class NullPart : Part
|
||||
{
|
||||
public override void Operate(Context ctx) { }
|
||||
}
|
||||
}
|
||||
@ -15,13 +15,13 @@ namespace XNeedle
|
||||
public class Options
|
||||
{
|
||||
[Value(0, MetaName = "xn", Required = true, HelpText = "XN transformation definition")]
|
||||
public string XnDefinition { get; set; }
|
||||
public required string XnDefinition { get; set; }
|
||||
|
||||
[Option('i', "input", HelpText = "Input XML file", Required = true)]
|
||||
public string Input { get; set; }
|
||||
public required string Input { get; set; }
|
||||
|
||||
[Option('o', "output", HelpText = "Output XML file", Required = true)]
|
||||
public string Output { get; set; }
|
||||
public required string Output { get; set; }
|
||||
|
||||
[Option('v', "verbose", Required = false, HelpText = "Set output to verbose messages.")]
|
||||
public bool Verbose { get; set; }
|
||||
|
||||
@ -21,7 +21,6 @@ namespace XNeedle.Transformation
|
||||
}
|
||||
|
||||
var bodyctx = bangop.Execute(ctx, Arguments);
|
||||
Console.WriteLine($"Operate Bang: {Name}, {string.Join(",", Arguments)}");
|
||||
foreach (var b in Body)
|
||||
{
|
||||
b.Operate(bodyctx);
|
||||
|
||||
@ -1,5 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyName>xn</AssemblyName>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<SelfContained>true</SelfContained>
|
||||
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user