using CodeLiturgy.Augeas; using CodeLiturgy.Augeas.Test; var path = Environment.CurrentDirectory; var root = $"{path}/root/"; AugSettings augSettings = new AugSettings(root, "/opt/homebrew/share/augeas/lenses/dist"); var augeas = new Augeas(augSettings); // 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"; //AugeasCore.Benchmark( () => augeasCore.PrintAugTree(clSiteMatchPath , clSiteFilepath), 10); //AugeasCore.Benchmark( () => augeasCore.PrintPreview(clSiteMatchPath , clSiteFilepath), 10); augeas.LoadFile(clSiteFilepath); augeas.PrintAugTree(clSiteMatchPath); var tree = augeas.GetTree(clSiteMatchPath);