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:
parent
d86ee53f66
commit
1804a7fd93
7 changed files with 121 additions and 37 deletions
|
|
@ -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}"))),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue