17 Commits

Author SHA1 Message Date
Sean Dague
dae9f3be8d print when skipping merging lines 2017-01-17 11:03:13 -05:00
Sean Dague
dde87e097f fix dsconf for setting localrc name=value
It's important when setting localrc name=value that there are no
spaces around the = sign, otherwise it doesn't work. Remember to treat
localrc special from the iniset portions.
2017-01-17 10:38:03 -05:00
Sean Dague
3ecd349bfe Fix merge of local.conf add tests 2017-01-17 09:22:18 -05:00
Sean Dague
0366529cc9 initial take at merging local.conf code 2017-01-17 09:03:50 -05:00
Sean Dague
be8cb74021 add more cli support
Make it possible to create a blank local.conf
2017-01-17 08:31:49 -05:00
Sean Dague
36b1e0ff34 start adding parser, only support python3
python3 argparse adds native subparsers, which makes this much easier
to build without external dependencies (which improves load and run
time). 20ms for most operations means we can do 50 / sec. This will be
a slow down from the awk approach, but for larger gains in
readability.
2017-01-16 16:38:07 -05:00
Sean Dague
671f526e41 fix pep8 2017-01-16 15:41:20 -05:00
Sean Dague
de574dc6a8 support localconf set 2017-01-16 14:20:58 -05:00
Sean Dague
925b1bc682 add functions to set items in local.conf 2017-01-16 13:31:53 -05:00
Sean Dague
a0f574ab97 add localrc extraction 2017-01-16 12:45:37 -05:00
Sean Dague
edd7cc1bcc tests for merging with existing ini files 2017-01-16 12:12:28 -05:00
Sean Dague
e7636a7714 make iniset work with files that do not yet exist
This allows the add and set commands to work when files do not yet
exist, which becomes important for extracting things like post config
files.
2017-01-16 12:07:10 -05:00
Sean Dague
7e7ffec87e fix pep8 issue 2017-01-16 10:22:20 -05:00
Sean Dague
79f8f551c3 add uncomment function 2017-01-16 10:18:53 -05:00
Sean Dague
6971e39e94 Add comment, set, has methods 2017-01-16 10:04:51 -05:00
Sean Dague
0c14c58913 add inifile add/remove code 2017-01-16 09:37:39 -05:00
Sean Dague
7955f99443 Initial Cookiecutter Commit. 2017-01-16 08:06:54 -05:00