Files
marqdo/public/stdlib/sys.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

517 B


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

print text=cwd-empty