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");
|
.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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user