From f09bcb79edc32e8f459fec036e64a42ea9f03191 Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sat, 27 Jun 2020 22:32:38 -0400 Subject: [PATCH] added get_input function might want to pull this elsewhere as many different implementations might use this. maybe a trait perhaps? --- src/issue.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/issue.rs b/src/issue.rs index 70c81da..333a49e 100644 --- a/src/issue.rs +++ b/src/issue.rs @@ -1,4 +1,5 @@ use std::collections::HashMap; +use std::io; use clap::ArgMatches; use colored::*; @@ -15,6 +16,12 @@ impl Issue { } pub fn create_issue(&self, config: &Configuration, arg: &ArgMatches) { - + let client = Client::new(); + } + + pub fn get_input(&self) -> String { + let mut input = String::new(); + io::stdin().read_line(&mut input).unwrap(); + input.trim().to_string() } }