Files
marqdo/public/stdlib/sys.mq.md
T

537 B

markup, title, description, import
markup title description import
occlusion lib/sys — process Env, dotenv, cwd, args, exit, exec
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