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

FEATURE : Add `strictyaml` command-line tool #55

Open
wants to merge 1 commit into
base: master
from
Commits on Apr 11, 2019
  1. FEATURE : Add `strictyaml` command-line tool

    9999years committed Apr 11, 2019
    Adds a `strictyaml` binary which parses input files and prints errors;
    useful for linting YAML files:
    
        $ strictyaml --no-symbols site.yml roles/common/tasks/xcode.yml
        While scanning
          in "site.yml", line 5, column 9:
              flow: { flow: val }
                    ^ (line: 5)
        Found ugly disallowed JSONesque flow mapping (surround with ' and ' to make text appear literally)
          in "site.yml", line 5, column 10:
              flow: { flow: val }
                     ^ (line: 5)
        site.yml contained errors
        roles/common/tasks/xcode.yml validated successfully
        Encountered 1 error
    
        $ cat roles/common/tasks/xcode.yml | strictyaml -
        ☑ <stdin>
        All files validated successfully
    
    Also extends `hitch/engine.py` to support running shell commands and
    examining their output.
You can’t perform that action at this time.