pawamoy / markdown-exec

Utilities to execute code blocks in Markdown files.
https://pawamoy.github.io/markdown-exec
ISC License
111 stars 8 forks source link

Add a cwd option to console #20

Closed ssbarnea closed 5 months ago

ssbarnea commented 1 year ago

Using console formatter to create usage examples but at this moment there is no way to set the CWD for the executed command.

By adding a cwd/chdir optional argument, this can be avoided.