added get_input function

might want to pull this elsewhere as many different implementations
might use this. maybe a trait perhaps?
This commit is contained in:
Wyatt J. Miller 2020-06-27 22:32:38 -04:00
parent dbeea3eccf
commit f09bcb79ed

View File

@ -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()
}
}