Compare commits

..

11 Commits
main ... rls

Author SHA1 Message Date
Wvader 607a30e728 Add lib for mac 2022-12-06 14:52:59 +00:00
code liturgy eae24d1b14 Use properties instead of fields in some elements to be ASP API friendly 2022-12-06 14:30:03 +00:00
code liturgy 29619765a8 Improve documentation 2022-12-05 02:24:50 +00:00
code liturgy f5c1368b8f Make AugSettings fields public 2022-12-04 23:07:02 +00:00
code liturgy dfba89a82f last try 2022-12-02 00:25:24 +00:00
code liturgy 766d451b52 bump 2022-12-01 23:56:32 +00:00
code liturgy 3759eec7cb bump version 2022-12-01 23:31:02 +00:00
code liturgy 2abeb3b379 Try other method to copy native lib 2022-12-01 23:30:19 +00:00
code liturgy 6949875891 Bump 2022-12-01 23:04:21 +00:00
code liturgy 0e4d02652f bump version 2022-12-01 22:55:18 +00:00
code liturgy 07ac032b99 Nuget copy native Linux targeted library 2022-11-28 17:42:11 +00:00
11 changed files with 26 additions and 26 deletions

View File

@ -15,7 +15,6 @@
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="NUnit.Analyzers" Version="3.3.0" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="Sharp.Augeas" Version="1.1.0-g34c7ba4d4d" />
</ItemGroup>
<ItemGroup>
<ContentWithTargetPath Include="root\**">
@ -29,4 +28,7 @@
<TargetPath>lens\%(RecursiveDir)\%(Filename)%(Extension)</TargetPath>
</ContentWithTargetPath>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Sharp.Augeas\Sharp.Augeas.csproj" />
</ItemGroup>
</Project>

View File

@ -1,12 +1,12 @@
using System.Runtime.InteropServices;
namespace Sharp.Augeas.Test
namespace Sharp.Augeas
{
[StructLayout(LayoutKind.Sequential)]
public unsafe partial struct AugSettings {
[MarshalAs(UnmanagedType.LPStr)] internal string root;
[MarshalAs(UnmanagedType.LPStr)] internal string loadPath;
[MarshalAs(UnmanagedType.LPStr)] public string root;
[MarshalAs(UnmanagedType.LPStr)] public string loadPath;
public AugSettings(string _root, string _loadPath )
{
@ -19,7 +19,7 @@ namespace Sharp.Augeas.Test
root = "NIL";
loadPath = "NIL";
}
};
}
}

View File

@ -1,6 +1,5 @@
using System.Runtime.InteropServices;
using System.Text;
using Sharp.Augeas.Test;
using static Sharp.Augeas.AugeasExtern;
namespace Sharp.Augeas

View File

@ -2,7 +2,6 @@ using System.Numerics;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using Sharp.Augeas.Test;
namespace Sharp.Augeas
{

View File

@ -19,14 +19,15 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<PackageReference Update="Nerdbank.GitVersioning">
<Version>3.5.109</Version>
</PackageReference>
<None Include="libclAugeas.so">
<Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
<ItemGroup>
<Content Include="libclAugeas.so">
<Pack>true</Pack>
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<None Include="libclAugeas.dylib">
<Pack>true</Pack>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
</Project>

View File

@ -3,7 +3,7 @@ namespace Sharp.Augeas;
public class Argument : Node
{
public string Value;
public string Value { get; set; }
public bool SetValue(string newValue)
{

View File

@ -4,14 +4,14 @@ namespace Sharp.Augeas;
public class Directive : Node
{
public string Value;
public List<Argument> Arguments;
public string Value { get; set; }
public List<Argument> Arguments { get; set; }
public bool HasArguments => Arguments.Count != 0;
/// <summary>
/// Sets a new value for the directive using string literals
/// The values are separated by spaces, the first value is the directive value,
/// the other values are values corresponding to the arguments.
/// Sets a new value for the directive.
/// The first word is the directive value,
/// the following words correspond to the arguments.
/// </summary>
/// <param name="newValue"></param>
public void Set(string newValue)
@ -31,8 +31,7 @@ public class Directive : Node
}
/// <summary>
/// Set the value of this directive.
/// Note: This doesn't write any changes to disk.
/// Set the value of this directivew without writing changes to the disk.
/// </summary>
/// <param name="newValue">New value.</param>
/// <returns></returns>

View File

@ -4,9 +4,9 @@ namespace Sharp.Augeas
{
public class SuperNode : Node
{
public List<Directive> Directives;
public List<Argument> Arguments;
public List<SuperNode> SuperNodes;
public List<Directive> Directives { get; set; }
public List<Argument> Arguments { get; set; }
public List<SuperNode> SuperNodes { get; set; }
public SuperNode(Augeas augeas, string path, string id) : base(augeas, path)
{

Binary file not shown.

View File

@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.1",
"version": "1.3",
"semVer1NumericIdentifierPadding": 1,
"publicReleaseRefSpec": [
"^refs/heads/master$",