mirror of
https://codeberg.org/icewind/haze.git
synced 2026-06-03 17:14:08 +02:00
move checkout to new git subcommand
This commit is contained in:
parent
666b58a773
commit
d86ee53f66
3 changed files with 320 additions and 176 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -1,6 +1,6 @@
|
|||
extern crate core;
|
||||
|
||||
use crate::args::{ExecService, HazeArgs};
|
||||
use crate::args::{ExecService, GitOperation, HazeArgs};
|
||||
use crate::cloud::{Cloud, CloudOptions};
|
||||
use crate::config::HazeConfig;
|
||||
use crate::database::DatabaseFamily;
|
||||
|
|
@ -362,9 +362,11 @@ async fn main() -> Result<ExitCode> {
|
|||
HazeArgs::Proxy => {
|
||||
proxy(docker, config).await?;
|
||||
}
|
||||
HazeArgs::Checkout { branch } => {
|
||||
checkout_all(&config.sources_root, &branch)?;
|
||||
}
|
||||
HazeArgs::Git { operation } => match operation {
|
||||
GitOperation::Checkout { branch } => {
|
||||
checkout_all(&config.sources_root, &branch)?;
|
||||
}
|
||||
},
|
||||
HazeArgs::Env {
|
||||
filter,
|
||||
command,
|
||||
|
|
@ -452,7 +454,7 @@ async fn main() -> Result<ExitCode> {
|
|||
println!("haze v{}", VERSION);
|
||||
}
|
||||
HazeArgs::Help { command } => {
|
||||
help(command);
|
||||
help(command.as_deref());
|
||||
}
|
||||
HazeArgs::Edit { filter, path } => {
|
||||
let cloud = Cloud::get_by_filter(&docker, filter, &config).await?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue