chezmoi_modify_manager 2.2.3

Chezmoi addon to patch ini files with mixed settings and state (experimental rust branch)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Perform update check and auto update.
#![cfg(feature = "self_update")]

use self_update::cargo_crate_version;

/// Perform update check from github.
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(())
}