Files
marqdo/tests/lib/foreign-invoke.mq.md
cflmyandCursor 687c168014 feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target
entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the
old one-liner form, and migrate lib/ext/examples/tests/docs accordingly.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 19:33:58 +08:00

22 lines
411 B
Markdown

---
markup: occlusion
title: foreign invoke record
import:
foreign: lib/foreign.mq.md
---
# main
`失败` =
```node
process.stderr.write("boom");
process.exit(3);
```
**记录 = > foreign.invoke code=`失败`**
> print text=[ok](access(`记录`, "ok"))
> print text=[code](access(`记录`, "code"))
> print text=[stderr](access(`记录`, "stderr"))
> print text=[truncated](access(`记录`, "truncated"))