Files
marqdo/public/stdlib/sys.mq.md
T
cflmyandCursor ecc92f473a Unify frontmatter imports as import bind:target and drop > imports.
`import json:lib/json.mq.md` binds file libraries; `import fmt:time.format`
binds member short names (replaces `> use`). Legacy `> path.mq.md` / `> use`
now hard-error with a hint. Migrates repo docs, skills, ext, lib, public, examples,
man-test and tests; adds a negative gold and updates view/catalog rendering.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 10:03:21 +08:00

19 lines
513 B
Markdown

---
title: lib/sys — process
description: Env, dotenv, cwd, args, exit, exec
import sys:lib/sys.mq.md
---
# 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` *
1. `n` > 0
> print text=cwd-ok
2. *
> print text=cwd-empty