waterui-cli 0.2.0

Cross-platform tooling for WaterUI applications
1
2
3
4
5
6
7
8
use std::path::{Path, PathBuf};

use color_eyre::eyre::{Result, WrapErr};

pub fn canonicalize(path: &Path) -> Result<PathBuf> {
    dunce::canonicalize(path)
        .wrap_err_with(|| format!("Failed to canonicalize path: {}", path.display()))
}