use crate::self_updater;
use anyhow::Result;

pub fn run(client: &ureq::Agent, pre_release: bool, color_output: bool) -> Result<()> {
    self_updater::self_update(client, pre_release, color_output)
}

pub fn run_if_available(client: &ureq::Agent, pre_release: bool, color_output: bool) -> Result<()> {
    self_updater::self_update_if_available(client, pre_release, color_output)
}

pub fn check(client: &ureq::Agent, pre_release: bool, color_output: bool) -> Result<()> {
    self_updater::check_for_update(client, pre_release, color_output)?;
    Ok(())
}
