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