diff --git a/.gitignore b/.gitignore index 874ae51..761333f 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,6 @@ SessionZero.SzfCli/bin SessionZero.SzfCli/obj SessionZero.SzfLib/bin -SessionZero.SzfLib/obj \ No newline at end of file +SessionZero.SzfLib/obj + +publish-lib-nuget.sh \ No newline at end of file diff --git a/SessionZero.SzfCli/Program.cs b/SessionZero.SzfCli/Program.cs index b79db27..6da431e 100644 --- a/SessionZero.SzfCli/Program.cs +++ b/SessionZero.SzfCli/Program.cs @@ -77,6 +77,6 @@ try } catch (SzfError ex) { - Console.WriteLine($"Szf Validation Error: {ex.Message}"); + AnsiConsole.MarkupLine($"[bold][red]Szf Validation Error:[/][/]\r\n{ex.Message}"); } diff --git a/SessionZero.SzfLib/Objects/SzfDataset.cs b/SessionZero.SzfLib/Objects/SzfDataset.cs index df2d3fb..4743c2d 100644 --- a/SessionZero.SzfLib/Objects/SzfDataset.cs +++ b/SessionZero.SzfLib/Objects/SzfDataset.cs @@ -7,8 +7,7 @@ namespace SessionZero.SzfLib.Objects; public class SzfDataset : SzfObject, ISzfDataset { public override string SzfType { get; set; } = "dataset"; - - + public override SzfError Validate() { var result = SzfHelper.BasicSzfValidation(this); diff --git a/SessionZero.SzfLib/Parser/SzfParser.cs b/SessionZero.SzfLib/Parser/SzfParser.cs index 3743371..ab109cf 100644 --- a/SessionZero.SzfLib/Parser/SzfParser.cs +++ b/SessionZero.SzfLib/Parser/SzfParser.cs @@ -79,8 +79,6 @@ public class SzfParser : ISzfParser result = szfObject.Validate(); if (result.IsValid) return szfObject; - - Console.WriteLine(result.Message); } throw result; diff --git a/SessionZero.SzfLib/README.md b/SessionZero.SzfLib/README.md new file mode 100644 index 0000000..59c5ae8 --- /dev/null +++ b/SessionZero.SzfLib/README.md @@ -0,0 +1 @@ +# SessionZero SZFLib diff --git a/SessionZero.SzfLib/SessionZero.SzfLib.csproj b/SessionZero.SzfLib/SessionZero.SzfLib.csproj index 17b910f..8284a14 100644 --- a/SessionZero.SzfLib/SessionZero.SzfLib.csproj +++ b/SessionZero.SzfLib/SessionZero.SzfLib.csproj @@ -4,6 +4,22 @@ net9.0 enable enable + Session Zero SZFLib + An extendable library for handling SessionZero SZF data including Parsing and Generating. + 2025 Bellsworne LLC + https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet.git + https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet/src/branch/master/LICENSE + https://git.bellsworne.tech/Bellsworne/SessionZero.SzfToolkit-Dotnet.git + Git + true + logo_500x500.png + + + True + + + +