use std::path::PathBuf;
use color_eyre::eyre;
use eyre::eyre;
pub mod execute_cmd;
fn parse_and_normalize_path(path: &str) -> eyre::Result<PathBuf> {
use fm::NormalizePath;
let mut path: PathBuf = path.parse().map_err(|e| eyre!("failed to parse path: {e}"))?;
if !path.is_absolute() {
path = std::env::current_dir().unwrap().join(path).normalize();
}
Ok(path)
}