更新若干功能
This commit is contained in:
@@ -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) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user