From c85e4a72f55f70a8f071a09ba20e406eaedeaa32 Mon Sep 17 00:00:00 2001 From: code liturgy Date: Tue, 8 Nov 2022 15:42:16 -0500 Subject: [PATCH] Remove old dependencies --- README.md | 14 -------------- Sharp.Augeas/Augeas/Augeas.cs | 10 +++++++++- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 6d03af1..e38c4b7 100644 --- a/README.md +++ b/README.md @@ -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` \ No newline at end of file diff --git a/Sharp.Augeas/Augeas/Augeas.cs b/Sharp.Augeas/Augeas/Augeas.cs index 4e43d78..8e1a435 100644 --- a/Sharp.Augeas/Augeas/Augeas.cs +++ b/Sharp.Augeas/Augeas/Augeas.cs @@ -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; } + /// /// Loads a file. /// + /// + /// + + + /// + /// Binding for aug_load_file + /// /// Full path to the configuration file + /// True if successfully loaded. public bool LoadFile(string configurationFilePath) { if (_loadedFiles.Contains(configurationFilePath))