Changed some formatting

This commit is contained in:
breadone 2024-07-30 11:41:47 +12:00
parent e27053a4cc
commit f0f02a2b60
No known key found for this signature in database

View File

@ -44,23 +44,19 @@ pub async fn handle_git(cmd: &GitCommand) {
.expect("Could not connect to git@breadpi"); .expect("Could not connect to git@breadpi");
match cmd { match cmd {
GitCommand::Init { name } => { GitCommand::Init { name } => { init_repo(name, &session).await; }
init_repo(name, &session).await;
}
GitCommand::Delete { name } => { GitCommand::Delete { name } => { rm_repo(name, &session).await; }
rm_repo(name, &session).await;
}
GitCommand::Ls => {
let ls = list_repos(&session).await.join("\n");
print!("{ls}");
}
GitCommand::Add { name } => { add_remote_to_repo(name, &session).await; } GitCommand::Add { name } => { add_remote_to_repo(name, &session).await; }
GitCommand::Clone { name } => { clone_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; let _ = session.close().await;