<div dir="ltr">Hi David,<div><br></div><div><br></div><div>I saw this PR and thought it was interesting indeed.<br><br>That reminds me of the scripts I had made some years ago at <a href="https://github.com/raphink/augeas-sandbox">https://github.com/raphink/augeas-sandbox</a> (albeit much more elegant).</div><div><br></div><div><br></div><div>Raphaël</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 22, 2017 at 2:14 AM, David Lutterkort <span dir="ltr"><<a href="mailto:lutter@watzmann.net" target="_blank">lutter@watzmann.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div>I was looking at a tool (gron, I believe) that prints JSON files line-by-line; that set of a bunch of thoughts around how the structure of the Augeas tree could be made available in a similar fashion. This weekend, I implemented a new CLI tool 'augmatch' that does excactly that: it prints the tree for a file, and lets you focus (via path expressions) on specific parts of that tree.<br><br>In theory, you could have done all that with augtool, but it would be pretty awkward and is much less accessible than augmatch. In addition, I am hoping that augmatch makes it easier for people to understand how files appear in the tree, too.<br><br></div>For now, I really want to focus augmatch on just printing, but not modifying the tree. I am really interested in getting more feedback around the usability of the command line. The <a href="https://github.com/hercules-team/augeas/pull/531" target="_blank">PR</a> has some examples on how to use augmatch, and also links to a static Linux build of it, as well as a Docker container, either of which makes it possible to try augmatch without building anything.<br></div><div><br></div><div>Looking forward to hearing how useful people find this. Feel free to respond here or comment on the PR.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div><br></div>David<br><br></font></span></div>
<br>______________________________<wbr>_________________<br>
augeas-devel mailing list<br>
<a href="mailto:augeas-devel@redhat.com">augeas-devel@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/augeas-devel" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/augeas-devel</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><span style="font-size:small">Raphaël Pinson</span><div style="font-size:small">Infrastructure Developer & Training Leader</div><div><font size="2">+33 458 482 013</font><div style="font-size:small"><br></div><div style="font-size:small">Camptocamp France SAS</div><div><div><font size="2">Bâtiment le Dauphin - 1er étage</font></div></div><div style="font-size:small">18 rue du Lac Saint André</div><div style="font-size:small">Savoie Technolac</div><div style="font-size:small">F-73370 Le Bourget du Lac</div><div style="font-size:small"><br></div><div style="font-size:small"><a href="http://www.camptocamp.com/" style="color:rgb(17,85,204)" target="_blank">www.camptocamp.com</a></div></div>
</div></div></div></div></div></div></div></div></div></div>
</div>