This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::error::Error; | |
use std::io; | |
use std::io::prelude::*; | |
use std::process; | |
macro_rules! strerr { | |
($($tt:tt)*) => (Err(From::from(&*format!($($tt)*)))); | |
} | |
type CliResult<T> = Result<T, Box<Error + Send>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate regex; | |
use std::error::Error; | |
use std::io; | |
use std::io::prelude::*; | |
use std::process; | |
use regex::Regex; | |
type CliResult<T> = Result<T, Box<Error + Send>>; |