Sharp.Augeas/CodeLiturgy.Augeas/Program.cs

18 lines
676 B
C#
Raw Normal View History

2022-11-04 03:40:02 +03:00
using CodeLiturgy.Augeas.Test;
2022-11-04 20:09:06 +03:00
using static CodeLiturgy.Augeas.AugeasLib;
2022-11-04 03:40:02 +03:00
var path = Environment.CurrentDirectory;
var root = $"{path}/root/";
AugSettings augSettings = new AugSettings(root, "/opt/homebrew/share/augeas/lenses/dist");
2022-11-04 20:09:06 +03:00
// 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");