Yay!
This commit is contained in:
parent
2ada601e06
commit
f10707e224
@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user