marqdo

lib/sys — processok

stdlib/sys.mq.md

文档

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. else
    > print text=cwd-empty
Functions
Variables
  • d text
    /home/runner/work/marqdo/marqdo/public
  • description text
    Env, dotenv, cwd, args, exit, exec
  • markup text
    occlusion
  • n int
    38
  • title text
    lib/sys — process
可执行知识(辅助)

运行与结果

cwd-ok
完整源码
---
markup: occlusion
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

Variable