Remove old dependencies

This commit is contained in:
code liturgy 2022-11-08 15:42:16 -05:00
parent d484feb8a6
commit c85e4a72f5
2 changed files with 9 additions and 15 deletions

View File

@ -5,17 +5,3 @@ Sharp.Augeas implements an abstraction to be able to use augeas with C# / .NET.
Note: Currently the focus is abstractions with a focus on handling Apache configurations. In the future these abstractions may be associated with various other configurations.
## Instructions
### Copy Native wrapper library
`cd Sharp.Augeas && ./copyLibrary.sh`
### Augeas
Augeas must be installed on the system, and the environment variable "AUG_LENS_PATH" must be populated, otherwise an exception will be thrown.
* Mac Os os example, after installing using brew:
`export AUG_LENS_PATH=/opt/homebrew/share/augeas/lenses/dist`
* Debian / Ubuntu (Using package manager): `export AUG_LENS_PATH=/opt/homebrew/share/augeas/lenses/dist`

View File

@ -1,6 +1,5 @@
using System.Runtime.InteropServices;using Sharp.Augeas.Test;
using static Sharp.Augeas.AugeasExtern;
using static Sharp.Augeas.AugFlags;
namespace Sharp.Augeas
{
@ -100,10 +99,19 @@ namespace Sharp.Augeas
return res != IntPtr.Zero ? Marshal.PtrToStringAnsi(res) : string.Empty;
}
/// <summary>
/// Loads a file.
/// </summary>
/// <param name="configurationFilePath"></param>
///
/// <summary>
/// Binding for aug_load_file
/// </summary>
/// <param name="configurationFilePath">Full path to the configuration file</param>
/// <returns>True if successfully loaded.</returns>
public bool LoadFile(string configurationFilePath)
{
if (_loadedFiles.Contains(configurationFilePath))