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: Syntax checking/Validation subcommand #63

Open
tomjn opened this issue May 26, 2021 · 0 comments
Open

Feature: Syntax checking/Validation subcommand #63

tomjn opened this issue May 26, 2021 · 0 comments

Comments

@tomjn
Copy link

tomjn commented May 26, 2021

Sometimes it's enough to just know if a YAML file is a valid YAML file

It would be nice to have a subcommand that just loaded the YAML file/stdin and returned a good exit code, or a bad one with a syntax error.

We have a GH action that we'd like to validate a YAML file doesn't contain syntax errors ( a contributor made a mistake in a PR that made the document invalid and broke things ). We could try to retrieve a value from the file but to do this we need to assume certain things about the files contents.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant