Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Ticket #4 (new enhancement)

Opened 8 years ago

Add action "ini_merge" for merging ini-style files

Reported by: xelnor Owned by:
Priority: minor Milestone: confmgr-0.2
Component: actions Version:
Keywords: Cc:


It should have 3 arguments : from, to, fields_from.

What it does :

  • Read list of fields to be used in fields_from ini-style file
  • Read those fields from from file
  • Update there value in to file

So when installing, you could use ini_merge blah.ini blah.ini ~/.blah.ini to update ~/.blah.ini (only the fields listed in blah.ini) with the values in blah.ini

And when retrieving, you would run ini_merge blah.ini ~/.blah.ini blah.ini : update fields of blah.ini listed in blah.ini with their value from ~/.blah.ini

Note: See TracTickets for help on using tickets.