use std::io::Error;
#[derive(Debug, thiserror::Error)]
pub enum CmdError {
#[error("执行命令失败: {0}")]
Execute(Error),
#[error("运行命令失败: {0}")]
Run(String),
#[error("杀死命令进程失败: {0}")]
Kill(Error),
#[error("获取命令输出失败")]
TakeStdout(),
#[error("进程ID为空")]
EmptyId,
}