config file parsing
$10-30 USD
Оплачується при отриманні
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.
ID Проекту: #7606150
Про проект
3 фрілансерів(-и) готові виконати цю роботу у середньому за $167
I have experience with functional programming and know Boomerang / Harmony. But, getting into Augeas will take some time.