[augeas-devel] [Augeas] #16: [inifile.aug] Support multiple values entries

Augeas trac at fedorahosted.org
Wed Aug 8 07:43:52 UTC 2012


#16: [inifile.aug] Support multiple values entries
--------------------------+----------------------
  Reporter:  raphink      |      Owner:  raphink
      Type:  enhancement  |     Status:  new
  Priority:  minor        |  Milestone:  wishlist
 Component:  Augeas       |    Version:  0.3.1
Resolution:               |   Keywords:
Blocked By:               |   Blocking:
--------------------------+----------------------
Description changed by raphink:

Old description:

> Some INI files can have multiple values, separated by commas, e.g.
>
> key = value1, value2, value3
>
> Adding support for this feature to all INI File entries would mess up the
> lens, since single value keys would get their values listed in arrays,
> like:
>
> key1 = value1
> key2 = value2, value3
>

> would give
>

> { "key1"
>    { "1" = "value1" } }
> { "key2"
>    { "1" = "value2" }
>    { "2" = "value3" } }
>

> The idea is thus to implement a entry_array lens to support arrays for
> specific entry keys.

New description:

 Some INI files can have multiple values, separated by commas, e.g.

 {{{
 key = value1, value2, value3
 }}}

 Adding support for this feature to all INI File entries would mess up the
 lens, since single value keys would get their values listed in arrays,
 like:

 {{{
 key1 = value1
 key2 = value2, value3
 }}}

 would give

 {{{
 { "key1"
    { "1" = "value1" } }
 { "key2"
    { "1" = "value2" }
    { "2" = "value3" } }
 }}}

 The idea is thus to implement a entry_array lens to support arrays for
 specific entry keys.

--

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/16#comment:2>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list