Add support for wildcards in Windows CMD (#329)

Windows does not support wildcard expansion in cmd, this adds 'wild' crate (as discussed in #309) that handles everything transparently, so wildcards work everywhere.

Fixes #309
This commit is contained in:
Richard Hozák
2018-10-03 22:59:11 +02:00
committed by David Peter
parent 0d71968615
commit b39e28d2c8
4 changed files with 20 additions and 1 deletions

View File

@ -6,6 +6,7 @@ use atty::{self, Stream};
use clap::ArgMatches;
use clap_app;
use wild;
use console::Term;
@ -102,7 +103,7 @@ impl App {
}
fn matches(interactive_output: bool) -> ArgMatches<'static> {
clap_app::build_app(interactive_output).get_matches()
clap_app::build_app(interactive_output).get_matches_from(wild::args())
}
pub fn config(&self) -> Result<Config> {

View File

@ -16,6 +16,7 @@ extern crate console;
extern crate directories;
extern crate git2;
extern crate syntect;
extern crate wild;
mod app;
mod assets;