lp:~ricardokirkner/configglue/757955-fatal-help
Created by
Ricardo Kirkner
and last modified
- Get this branch:
- bzr branch lp:~ricardokirkner/configglue/757955-fatal-help
Only
Ricardo Kirkner
can upload to this branch. If you are
Ricardo Kirkner
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Ricardo Kirkner: Approve
- Łukasz Czyżykowski (community): Approve
-
Diff: 312 lines (+82/-57)7 files modifiedconfigglue/app/tests/test_base.py (+2/-2)
configglue/pyschema/glue.py (+11/-3)
configglue/pyschema/parser.py (+31/-41)
configglue/pyschema/schema.py (+8/-2)
configglue/tests/pyschema/test_parser.py (+6/-8)
configglue/tests/pyschema/test_schema.py (+2/-1)
configglue/tests/pyschema/test_schemaconfig.py (+22/-0)
Related bugs
Related blueprints
Branch information
Recent revisions
- 60. By Ricardo Kirkner
-
better handling errors in commandline when using fatal options
When invoked with --help the app will not fail due to an undefined 'fatal'
option. - 56. By Ricardo Kirkner
-
basic class added for simplifying creating configglue-enabled applications
By inheriting from configglue.app.App, your application instantly loads its
configuration files from the standard XDG locations:- /etc/<app>/app.cfg
- /home/<user>/. config/ <app>/app. cfg plus a local local.cfg file in the current folder (if available).
Configuration files are read in this order so that configuration can be
overridden at each level.Also, your application has support for plugins, such that each plugin can have
its own configuration backed up by its own schema and configuration files.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:configglue