easy-install 1.3.9

easy-install
Documentation
use crate::InstallConfig;
use crate::install::artifact::install_from_artifact_url;
use crate::tool::not_found_asset_message;
use crate::ty::{Nightly, Output};
use anyhow::Result;
use tracing::trace;

pub(crate) async fn install_from_nightly(repo: &Nightly, config: &InstallConfig) -> Result<Output> {
    trace!("install_from_nightly {}", repo);

    let artifact_url = repo.get_artifact_url(config).await?;
    let mut v = Output::new();
    if !artifact_url.is_empty() {
        for (name, i) in artifact_url {
            trace!("install_from_git artifact_url {}", i);
            if !config.name.is_empty() && !config.name.contains(&name) {
                continue;
            }
            v.extend(install_from_artifact_url(&i, &name, config).await?);
        }
    } else {
        not_found_asset_message(&repo.url);
    }
    Ok(v)
}