ADDED:
* auger, some convenience funcs around Augeas.
This commit is contained in:
brent saner
2024-06-20 05:22:33 -04:00
parent b64c318a4a
commit c0c924b75a
6 changed files with 471 additions and 0 deletions

9
auger/consts.go Normal file
View File

@@ -0,0 +1,9 @@
package auger
const (
augLensTpl string = "/augeas/load/%v" // A fmt.Sprintf string (single placeholder only) for Lens module roots.
augFsTree string = "/files"
augFsTpl string = augFsTree + "%v//%v" // A fmt.Sprintf string (first placeholder fspath, second placeholder includeDirective) for files to search for the includeDirective.
augInclTfm string = "incl" // The transformer keyword for Augeas includes.
augAppendSuffix string = "[last()+1]"
)