docs(lib): narrate remaining stdlib modules (M2)

Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 11:47:35 +08:00
1 parent 53bc3538da
commit fecaacd5be
49 files changed
+617 -21

No files matched your search

+12
View File
@@ -3,15 +3,21 @@ title: lib/sys
description: English system wrappers (load_dotenv accepts optional path via host alias)
---
English system wrappers (load_dotenv accepts optional path via host alias)
## env_get
+ `name`
Get environment variable name.
*> host_env_get name=`name`*
## env_set
+ `name`
+ `value`
Set environment variable name to value.
*> host_env_set name=`name` value=`value`*
## load_dotenv
@@ -23,15 +29,21 @@ Load `.env` (optional named arg `path=`). Existing process env is not overridden
## args
Process argv list.
*> host_args*
## cwd
Current working directory.
*> host_cwd*
## exit
+ `code`
Exit process with code.
*> host_exit code=`code`*
## exec