Skip to content
许兴逸 edited this page Feb 8, 2024 · 3 revisions

常量

os :: string

表示当前用户正在使用的操作系统,可能为以下几种值之一:

  • "windows"
  • "darwin" -- macos
  • "freebsd"
  • "linux"
  • "linux-android"
  • "netbsd"
  • "openbsd"

arch :: string

表示当前用户正在使用的架构, 可能的值参见Haskell中的System.Info.arch

cwd :: string

表示当前工作目录。

env-path :: string list

表示当前环境下$PATH变量中的路径列表,已经根据当前操作系统的分割符切割好每个目录, 列表中的每个项代表一个目录。

cpu-count :: number

表示当前机器上逻辑CPU核心数。

temp-dir :: string

临时文件夹的路径。

Clone this wiki locally