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 --maskfile-introspect flag to print out the maskfile command structure as json #85

Merged
merged 2 commits into from
Apr 15, 2021

Conversation

jacobdeichert
Copy link
Owner

I've heard from a few different users that they want the ability to generate autocomplete commands for mask. Up until now, I've been suggesting that parsing the maskfile for command headings was a good enough solution. However, parsing out named flags and arguments becomes much more difficult.

Today I published mask-parser which contains all of the parsing logic mask uses for the maskfile.md format.

This PR adds a flag to mask --maskfile-introspect which prints out the entire maskfile command structure as json which can be consumed by other programs/libs at runtime. This should be helpful for tools that need to generate autocomplete commands.

@jacobdeichert jacobdeichert mentioned this pull request Apr 15, 2021
@jacobdeichert jacobdeichert merged commit 9cb6007 into master Apr 15, 2021
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

Successfully merging this pull request may close these issues.

1 participant