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 authored and David Peter committed 2018-10-03 22:59:11 +02:00
1 parent 0d71968615
commit b39e28d2c8
4 files changed
+20 -1

No files matched your search

+2 -1
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> {
+1
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;