use typed_fields::path;
use crate::context::ContextError;
path!(
CurrentWorkingDirectory
);
impl CurrentWorkingDirectory {
pub fn try_from_env() -> Result<CurrentWorkingDirectory, ContextError> {
let cwd = std::env::current_dir()?;
Ok(CurrentWorkingDirectory::new(cwd))
}
}