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:
		| @@ -1,4 +1,5 @@ | |||||||
| use std::collections::HashMap; | use std::collections::HashMap; | ||||||
|  | use std::io; | ||||||
|  |  | ||||||
| use clap::ArgMatches; | use clap::ArgMatches; | ||||||
| use colored::*; | use colored::*; | ||||||
| @@ -15,6 +16,12 @@ impl Issue { | |||||||
|     } |     } | ||||||
|  |  | ||||||
|     pub fn create_issue(&self, config: &Configuration, arg: &ArgMatches) { |     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() | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user