Adds support for chezmoi (#744)

This commit is contained in:
Philipp Weißmann
2021-07-19 07:29:34 +02:00
committed by GitHub
parent c891d109d2
commit 2c348090b7
3 changed files with 13 additions and 0 deletions

View File

@@ -268,6 +268,15 @@ pub fn run_tlmgr_update(ctx: &ExecutionContext) -> Result<()> {
command.check_run()
}
pub fn run_chezmoi_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
let chezmoi = utils::require("chezmoi")?;
base_dirs.home_dir().join(".local/share/chezmoi").require()?;
print_separator("chezmoi");
run_type.execute(&chezmoi).arg("update").check_run()
}
pub fn run_myrepos_update(base_dirs: &BaseDirs, run_type: RunType) -> Result<()> {
let myrepos = utils::require("mr")?;
base_dirs.home_dir().join(".mrconfig").require()?;