Replies: 1 comment 1 reply
-
Mask has an undocumented option that could help you here: When you run that, it spits out a json representation of mask's command structure. You could make a tiny script in your language of choice that parses that json and runs all commands it finds. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there 👋
First off, thank you for this awesome tool — it's been great to work with! 🙌
We're exploring an interesting use case and wanted to share our thoughts to see if it's something that could be supported (or already is, and we just missed it).
Our goal is to leverage mask during CI/CD to automatically run code snippets from Markdown files. These snippets usually appear as examples in documentation — for instance, demonstrating how to use a library. While we know this isn’t the original intent of the tool, mask already covers most of the functionality we need, which is amazing.
One small thing we’re missing:
We’d love to have a single command, something like mask all, that could run all mask targets defined within a Markdown file. This would allow us to verify that all embedded code examples are still working and up to date — a huge win for keeping our documentation accurate and trustworthy over time.
Does something like this already exist? If not, would this be a feature you’d consider adding, or something we could contribute?
Thanks again for the great work on mask! Looking forward to hearing your thoughts.
Best,
Frank @fr12k
Beta Was this translation helpful? Give feedback.
All reactions