Sharp.Augeas/CodeLiturgy.Augeas/Program.cs

18 lines
676 B
C#

using CodeLiturgy.Augeas.Test;
using static CodeLiturgy.Augeas.AugeasLib;
var path = Environment.CurrentDirectory;
var root = $"{path}/root/";
AugSettings augSettings = new AugSettings(root, "/opt/homebrew/share/augeas/lenses/dist");
// Calling extern functions
string clSiteMatchPath = "/files/etc/apache2/sites-available/00-ci.codeliturgy.com.conf/VirtualHost";
string clSiteFilepath = "/etc/apache2/sites-available/00-ci.codeliturgy.com.conf";
PrintAugTree(augSettings, clSiteMatchPath , clSiteFilepath);
//PrintPreview(augSettings, clSiteMatchPath, clSiteFilepath);
//printPreview(augSettings, "/files/etc/apache2/sites-enabled/*", "/etc/apache2/sites-enabled");