dsh-tool-wsl
WSL 命令行工具:在 WSL(Ubuntu)环境执行 bash 命令(wsl.exe -d <distro> -- bash -c),Windows 上取代 dsh-tool-bash
AI 분석
核心用途是跨平台执行 Linux 命令。适合在 Windows 环境下开发、但需要原生 Linux 终端环境执行脚本和工具的用户。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
配置
| 项 | 默认 | 说明 |
|---|---|---|
distro | Ubuntu | WSL 发行版名(wsl.exe -l -q 查看) |
wslExe | wsl.exe | wsl 可执行文件 |
loginShell | false | true 用 bash -lc(登录 shell),false 用 bash -c |
timeoutMs | 120000 | 前台默认超时 |
maxTimeoutMs | 600000 | 单次超时上限 |
maxOutputBytes | 64000 | 每流内存输出上限(溢出落盘) |
maxSpillBytes | 64MB | 溢出落盘上限 |
graceMs | 3000 | SIGTERM→SIGKILL 宽限 |
enableRunInBackground | true | 后台执行开关 |