mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-14 02:05:29 +02:00
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:
committed by
David Peter
parent
0d71968615
commit
b39e28d2c8
@ -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> {
|
||||
|
@ -16,6 +16,7 @@ extern crate console;
|
||||
extern crate directories;
|
||||
extern crate git2;
|
||||
extern crate syntect;
|
||||
extern crate wild;
|
||||
|
||||
mod app;
|
||||
mod assets;
|
||||
|
Reference in New Issue
Block a user