Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an expandconfig utility to add default values #178

Merged
merged 5 commits into from
Dec 3, 2018
Merged

Commits on Dec 3, 2018

  1. Add an expandconfig utility to add default values

    This patch adds an `expandconfig` binary which is able to load a
    configuration file, and write it back (in either TOML or YAML format)
    with the default values expanded.  This is useful in a variety of
    scenarios:
    
     - Check that a configuration file is valid with:
    
        expandconfig /path/to/config.toml
    
     - See default field values and structure with:
    
        expandconfig
    
     - See all available fields with (YAML displays fields with a default
       `None` value while TOML skips them):
    
        expandconfig -f yaml
    Elarnon committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    cc50b48 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8181ac2 View commit details
    Browse the repository at this point in the history
  3. Cleanup format parsing

    Elarnon committed Dec 3, 2018
    Configuration menu
    Copy the full SHA
    dc33b2d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    bf422bc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    29bcdc8 View commit details
    Browse the repository at this point in the history