Changed some formatting
This commit is contained in:
parent
e27053a4cc
commit
f0f02a2b60
20
src/git.rs
20
src/git.rs
@ -44,23 +44,19 @@ pub async fn handle_git(cmd: &GitCommand) {
|
||||
.expect("Could not connect to git@breadpi");
|
||||
|
||||
match cmd {
|
||||
GitCommand::Init { name } => {
|
||||
init_repo(name, &session).await;
|
||||
}
|
||||
GitCommand::Init { name } => { init_repo(name, &session).await; }
|
||||
|
||||
GitCommand::Delete { name } => {
|
||||
rm_repo(name, &session).await;
|
||||
}
|
||||
|
||||
GitCommand::Ls => {
|
||||
let ls = list_repos(&session).await.join("\n");
|
||||
|
||||
print!("{ls}");
|
||||
}
|
||||
GitCommand::Delete { name } => { rm_repo(name, &session).await; }
|
||||
|
||||
GitCommand::Add { name } => { add_remote_to_repo(name, &session).await; }
|
||||
|
||||
GitCommand::Clone { name } => { clone_repo(name, &session).await; }
|
||||
|
||||
GitCommand::Ls => {
|
||||
let ls = list_repos(&session).await.join("\n") + "\n";
|
||||
|
||||
print!("{ls}");
|
||||
}
|
||||
}
|
||||
|
||||
let _ = session.close().await;
|
||||
|
Loading…
x
Reference in New Issue
Block a user