更新若干功能

This commit is contained in:
李琦
2026-08-14 07:51:46 +08:00
parent d2aeb13a09
commit 153c7ed448
48 changed files with 5567 additions and 2673 deletions

View File

@@ -59,6 +59,9 @@ func RunHidden(ctx context.Context, name string, args ...string) (string, error)
return out, nil
}
// ConfigureHidden 供需要自建 exec.Cmd 流式读取输出的调用方隐藏控制台窗口。
func ConfigureHidden(cmd *exec.Cmd) { configureHidden(cmd) }
// DecodeWSLList 兼容部分 Windows 版本返回的 UTF-16LE 发行版列表。
func DecodeWSLList(b []byte) string { return decodeOutput(b) }