-
Notifications
You must be signed in to change notification settings - Fork 46
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
Support accepting multiple files as CLI arguments #157
Comments
that sounds like a good idea! |
That would also be good for the dune integration I think! |
It's actually better to invoke mdx once per file in dune so nevermind my previous comment. |
Does the recent |
I haven't ported the Irmin tutorials to use the If the |
Also worth noting that supporting multiple files is a nice feature for using this in tests outside of dune. |
I think at the moment the dune stanza is the recommended way to use MDX and we're more headed towards dropping the mdx binary than the other way around.
Coming back to this comment, I think litterate programming as proposed by MDX is a very simple feature, likely one that should be extracted to a different, more focused tool and turned into a dune dialect or something similar. This feature probably don't belong in MDX anymore as it does not use any of the actual MDX features which are to actually interpret blocks. The Might be worth looking into how to provide a better experience with that workflow and cut this out of the tool. |
Maybe then we should open some tickets to plan and schedule removal of features that have since been superseded by other tools? Kinda similar with how for |
I see. Thanks for the clarifying the direction. So if testing generally, and cram-style tests in particular, and literate programming in markdown, and the mdx binary in general are no longer on the roadmap or prioritized, I'd be interested to learn the main focus of the project going forward (I don't mean that sarcastically!). |
The dune stanza uses MDX to run the equivalent of mdx-test. What we mean here is that users don't have to right their own rules anymore to benefit from the mdx test promotion workflow and simply have to write a dune stanza. MDX still does all the work here. I'm not sure I understand what you're implying. The focus of MDX is the maintenance of code examples and fragments in documentation (markdown, mli, mld). You can still use it as a test tool too, the MDX stanza attaches the targets to the |
We merely deprecated an old and tedious workflow where users had to write their own rules, or use MDX to generate dune files. Indeed we're dropping cram testing (as in support for cram files, you can still run shell examples in your markdown for example) as dune provides a better integrated workflow for it. |
I was wondering: are you unhappy with the features provided by the dune stanza? Do you feel like some features of the At the moment none of the features you mentioned have been removed, we're just trying to write the right tools to provide them. For example, I think the |
The CLI subcommands (
output
,pp
,rule
,test
) currently all accept only a single file as input; it might be nice if they could accept more than one at a time.This would be helpful when verifying a set of markdown files, as in the Irmin tutorials. Currently, I think this requires an unsightly
bash
action to do it in a single Dune action:Whereas it would be nice to get away with simply:
What do you think?
The text was updated successfully, but these errors were encountered: