cli: Allow globs and exclusions (via '!' prefix) as args to parse

This commit is contained in:
Max Brunsfeld 2019-12-06 11:41:21 -08:00
parent 1c8aed790d
commit bd49fbab12
4 changed files with 63 additions and 12 deletions

View file

@ -93,6 +93,18 @@ impl From<io::Error> for Error {
}
}
impl From<glob::PatternError> for Error {
fn from(error: glob::PatternError) -> Self {
Error::new(error.to_string())
}
}
impl From<glob::GlobError> for Error {
fn from(error: glob::GlobError) -> Self {
Error::new(error.to_string())
}
}
impl From<regex_syntax::ast::Error> for Error {
fn from(error: regex_syntax::ast::Error) -> Self {
Error::new(error.to_string())