- From: Daniel DeLeo <
>
- To: Noah Kantrowitz <
>
- Cc: "
Dev" <
>
- Subject: [chef-dev] Re: Re: How to represent nested attributes
- Date: Mon, 7 Jul 2014 14:36:20 -0700
On Monday, July 7, 2014 at 2:10 PM, Noah Kantrowitz wrote:
>
>
On Jul 7, 2014, at 2:09 PM, Noah Kantrowitz
>
<
>
>
(mailto:
)>
>
wrote:
>
>
> Something that could maybe do with a bit of standardization. The issue is
>
> given some nested hashes, how do you indicate a specific key. The
>
> attribute declaration and the new attribute whitelists use a "/"
>
> separator, most knife command line options use a "." and partial searches
>
> use none and require a real array. Thoughts?
And ohai on the command line uses a slash I think.
>
>
Oh, and another another comes to mind, search itself uses "_"s, though in a
>
lossy conversion.
>
>
--Noah
This annoys me to no end. I don’t really have a favorite. Both “/“ and “.”
show up in actual attributes (that’ll be true for any character we pick
though) so in any case we need some form of escaping or a way to specify a
real array that isn’t terrible on the command line, though I think having a
separator character is reasonable to make the 80+% use case less cumbersome.
--
Daniel DeLeo
Archive powered by MHonArc 2.6.16.