config file parsing

Закрито Опубліковано %project.relative_time Оплачується при отриманні
Закрито Оплачується при отриманні

Create a augeas ([url removed, login to view]) lense ([url removed, login to view]) for UCI ([url removed, login to view]).

The UCI example configuration file must successfuly be parsed and used with augeas tool. Augeas test script must be provided as well and it must work with augparse tool. Please keep in mind comments and both quotes and double quotes which should be handled as well. The following example should be placed in /etc/config/example

package 'example'

config 'example' 'test'

option 'bla' 'toto'

option 'asdf' 'fdsa'

list 'my_list' 'first item'

list my_list item

# comment2

# comment3

config example2b "test2" # comment123

option foo test321

option bar test123

list 'my_list' 'first item' # comment

list my_list item

# this is a comment - option in_comment 'asdf'

When executed 'uci show example' I get the following output:

example.test=example

example.test.bla='toto'

example.test.asdf='fdsa'

example.test.my_list='first item' 'item'

example.test2=example2b

example.test2.foo='test321'

example.test2.bar='test123'

example.test2.my_list='first item' 'item'

Inside augeas lense I must easily manually modify configuration section, option and list. That is needed in order to have augeas auto completition working with augtool.

augtool should be able to edit configuration above like:

get etc/config/example/example/1/bla

And the result would be toto. Another example query would be:

get etc/config/example/example2b/1/foo

With the result test321. Also we need to handle the configuration section name somehow, such as test2 in case of example2b.

Installing UCI tool is not needed but might come handy.

Please let me know if there are any questions.

Linux Shell Script Розробка ПЗ UNIX

ID Проекту: #7606150

Про проект

3 заявок(-ки) Дистанційний проект Остання активність Jun 10, 2015

3 фрілансерів(-и) готові виконати цю роботу у середньому за $167

thms00

Dear sir, I read your project description. I am sure I can do this for you, in a timely manner. Please take a look at my profile, here is my skillset as well as more informations about me. [login to view URL] Більше

$34 USD за 0 дні(-в)
(15 відгуків(и))
3.6
modulor11

I have experience with functional programming and know Boomerang / Harmony. But, getting into Augeas will take some time.

$244 USD за 7 дні(-в)
(0 відгуків(и))
0.0
kandimurthy

A proposal has not yet been provided

$222 USD за 5 дні(-в)
(0 відгуків(и))
0.0