Files
memex/.opencode/commands/repl-block.md
Amr Gharbeia a2a7b4ca08 fix repl-block, check-tangle, commands: READMEs, exit codes, path resolution
repl-block:
- Listing mode exits 0, not 1 (listing is not an error)
- Dead lines parameter removed from find_by_function
- Block listing goes to stderr (not stdout) so piped use works
- Added README.org

check-tangle:
- Fixed tangle tool resolution: prefer local projects/tangle-tool/tangle
- Fixed path resolution for relative and absolute tangle paths
- Removed 2>/dev/null suppression so tangle errors are visible
- Added README.org

Commands:
- Rewrote all three .opencode/commands/*.md with proper prompts
2026-05-13 12:57:06 -04:00

18 lines
697 B
Markdown

---
description: Send a lisp block from an org file to the REPL
---
Extract a `#+begin_src lisp` block from an .org file and pipe it to the
running daemon REPL. Identify the block by function name or index.
The `--package` flag wraps the block in `(in-package ...)` so it evaluates
in the right namespace — essential when the block references symbols from
a specific package without the package prefix.
Usage: /repl-block <file.org> --function <name>
/repl-block <file.org> --function <name> --package <pkg>
/repl-block <file.org> --block <number>
Example:
/repl-block projects/passepartout/org/channel-tui-view.org --function view-status --package :passepartout.channel-tui