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>
519 B
519 B
title, description, import
| title | description | import | ||
|---|---|---|---|---|
| lib/sys — process | Env, dotenv, cwd, args, exit, exec |
|
main
Import lib/sys.mq.md. Functions: env_get, env_set, load_dotenv(optional path), args, cwd, exit(code), exec(cmd), stream_publish(event). load_dotenv does not override existing variables. Under view, exit soft-fails instead of killing the process. stream_publish feeds the view SSE EventBus.
d = [sys.cwd]
n = [len] d
n> 0
print text=cwd-ok
print text=cwd-empty