用哨兵错误与 %w 包装携带上下文,errors.Is/As 做可靠判断,defer 保证文件等资源在出错路径也被释放。
内容版本 1.0.0,核验于 2026-10-26
Search for a command to run...