This commit is contained in:
breadone 2024-03-10 18:17:39 +13:00
parent 2ada601e06
commit f10707e224
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
use clap::Subcommand;
use openssh::{Session, KnownHosts};
use std::{process::Command, io};
use std::process::Command;
#[derive(Subcommand)]
pub enum GitCommand {
@ -77,10 +77,6 @@ pub async fn handle_git(cmd: &GitCommand) {
}
GitCommand::Add { name } => { add_remote_to_repo(name.to_string()); }
_ => {
println!("oopsies")
}
}
}

View File

@ -6,6 +6,7 @@ use crate::git::{handle_git, GitCommand};
#[derive(Subcommand)]
enum Command {
/// Various commands for creating and adding git repos to breadpi.
Git {
#[command(subcommand)]
git_command: GitCommand