shellkitshellkit
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
Guide
API reference
Examples
Changelog
Releases
llms.txt
GitHub
  • 简体中文
  • English
  • API reference

    • API reference
    • error
    • i18n
    • log
    • str
    • validate
    • fs
    • os
    • trap
    • run
    • retry
    • lock
    • net
    • config
    • prompt
    • cli

Signatures only. The Chinese page carries the full comments: run.

run

run [--always] [--no-die] [--secret-arg N] [--redact-value V] [--] CMD...

run_concurrent

run_concurrent N [--timeout SEC] -- CMD...

parallel_map

parallel_map N [--timeout SEC] -- CMD...

run_timeout

没有 perl 时退化为不带超时(直接执行);SEC 为 0 表示不设超时。

run_func_timeout

函数在子 shell 里跑(所以改不到调用方的变量);stdout 收集后输出,stderr 丢弃。

run_install_sudo_shim

这是全局副作用(改了当前 shell 的命令解析),所以必须显式调用才生效。

Source on GitHub

Prev
trap
Next
retry
给 AI 直读:llms.txt 一个文件读完整个站点的地图