[augeas-devel] ssh_config lens

David Lutterkort lutter at redhat.com
Tue Mar 13 00:00:40 UTC 2012


On Fri, 2012-03-09 at 17:50 -0600, Greg Swift wrote:
> Hey ... so in this lens items under a host end up with no indentation.  Is
> this something that maybe should happen?

There's two ways to fix this: (1) indent new entries under a Host with a
fixed indentation (say 4 spaces) and (2) guess the right indentation
from the file.

Doing (1) would require a bit of a rewrite of the ssh lens; you would
want to change 'entry' to take a default amount of indentation. That's
entirely doable. Doing (2) would require some internal surgery in the C
code, and we'd have to introduce a new construct to let people say 'look
at this indentation, and use it when you produce new stuff'

David





More information about the augeas-devel mailing list