1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

git pull command

This commit is contained in:
Robin Appelman 2025-11-21 20:01:20 +01:00
commit 1804a7fd93
7 changed files with 121 additions and 37 deletions

View file

@ -115,6 +115,8 @@ pub enum HazeArgs {
)]
#[strum(serialize_all = "lowercase")]
pub enum GitOperation {
/// Pull the active branch in all apps
Pull,
/// Checkout a branch in all apps
///
/// "main" and "master" can be used interchangeably.
@ -333,6 +335,9 @@ impl HazeArgs {
operation: GitOperation::Checkout { branch },
})
}
"pull" => Ok(HazeArgs::Git {
operation: GitOperation::Pull,
}),
operation => Err(Report::msg(format!("Unknown git operation {operation}"))),
}
}