runme
runme copied to clipboard
Accept filename and code block id as parameter
Suggest to remove the --chdir and filename parameter as it feels not very familiar. Given the natural way devs us ls is suggest to allow passing in the readme path as parameter, e.g.:
Instead of:
runme ls --chdir ./examples --filename README.md
Just do:
runme ls ./examples/README.md
Same for executing code blocks:
runme run ./examples/README.md myExampleCodeBlock
I agree that --chdir and --filename are a poor UX design choice. The suggestions also make sense. The only thing is to provide good defaults which seem to fit nicely here:
runme lswould default to the current working directory andREADME.mdrunme run myExampleCodeBlockwould work the same and it's easy to distinct these two examples by the number of provided arguments.
@adambabik makes sense to me