Check if STDOUT is a TTY
()
| 12 | |
| 13 | /// Check if STDOUT is a TTY |
| 14 | pub fn is_stdout_tty() -> bool { |
| 15 | std::io::stdout().is_terminal() |
| 16 | } |
| 17 | |
| 18 | pub fn choose_option<T: Display>(message: &str, options: Vec<T>) -> InquireResult<T> { |
| 19 | inquire::Select::new(message, options) |