config file parsing

Κλειστό Αναρτήθηκε May 4, 2015 Πληρώθηκε κατά την παράδοση
Κλειστό Πληρώθηκε κατά την παράδοση

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 Δέσμες Εντολών Γλώσσας Υπολογιστή Ανάπτυξη Λογισμικού UNIX

Ταυτότητα Εργασίας: #7606150

Σχετικά με την εργασία

3 προτάσεις Απομακρυσμένη εργασία Ενεργό Jun 10, 2015

3 freelancers κάνουν προσφορές κατά μέσο όρο $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