From f10707e224e5aedb3cfdf015f2d578ff48308c13 Mon Sep 17 00:00:00 2001 From: breadone Date: Sun, 10 Mar 2024 18:17:39 +1300 Subject: [PATCH] Yay! --- src/git.rs | 6 +----- src/main.rs | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/git.rs b/src/git.rs index 6efefa2..f5dda5f 100644 --- a/src/git.rs +++ b/src/git.rs @@ -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") - } } } diff --git a/src/main.rs b/src/main.rs index 1016cce..4ee3045 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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