pub fn upload( host: Option<String>, directory: &PathBuf, project: Option<String>, version: Option<String>, delete_after: bool, ) -> Result<()>