You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot execute the snippets of a markdown file, which is sitting in a different directory, in the current working directory.
paolino in π nixos in /tmp/runme-i2e via βοΈ impure (shell)
β― tree
.
βββ defdir
β βββ test.md
βββ rundir
3 directories, 1 file
paolino in π nixos in /tmp/runme-i2e via βοΈ impure (shell)
β― cat defdir/test.md
>```bash {"name":"test"}>pwd>```
paolino in π nixos in /tmp/runme-i2e via βοΈ impure (shell)
β― cd rundir/
paolino in π nixos in /tmp/runme-i2e/rundir via βοΈ impure (shell)
β― runme --filename ../defdir/test.md --chdir $(pwd) run test
/tmp/runme-i2e/defdir
I don't think I should need --chdir ... for this behavior, but it doesn't work. What should I do ? Is it possible ?
The text was updated successfully, but these errors were encountered:
Hi @paolino. Thanks for reporting this issue. Please note that runme treats your repo as a "project" versus individual files.
The current working directory is anchored based on the file's location. This allows Runme to be true to the directory hierarchy across client modalities (CLI, notebook, CI/CD).
If you want to modify a markdown file/document's current working directory, that's possible via the document-global directive or on at the individual block/cell. E.g. if you'd kept all markdowns in a ./docs directory but wanted to execute it in the root of the repo, you'd add the following frontmatter to the file.
---
cwd: ..
---
[rest of markdown]
So in a nutshell, the working directory where the CLI runme run ran from is irrelevant. This is intentional to make commands like runme run test, runme run buid, etc work anywhere.
I cannot execute the snippets of a markdown file, which is sitting in a different directory, in the current working directory.
I don't think I should need
--chdir ...
for this behavior, but it doesn't work. What should I do ? Is it possible ?The text was updated successfully, but these errors were encountered: