#![cfg(feature = "updater")]
use self_update::cargo_crate_version;
pub(super) fn update() -> anyhow::Result<()> {
let status = self_update::backends::github::Update::configure()
.repo_owner("VorpalBlade")
.repo_name("chezmoi_modify_manager")
.bin_name("chezmoi_modify_manager")
.show_download_progress(true)
.current_version(cargo_crate_version!())
.build()?
.update()?;
println!("Update status: `{}`!", status.version());
Ok(())
}