Function build_work_path
Source pub fn build_work_path(path: &str) -> Result<PathBuf, AppError>
Expand description
构建工作路径
基于工作目录构建完整的项目路径。
use knife_util::{build_work_path, AppError};
fn main() -> Result<(), AppError> {
let config_path = build_work_path("config/app.toml")?;
println!("配置文件路径: {:?}", config_path);
Ok(())
}