pub fn new(path: &PathBuf, name: Option<&str>) -> Result<(), CommandError>