diff options
author | Dan Davison <dandavison7@gmail.com> | 2023-07-29 14:28:55 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2023-07-29 14:29:14 -0400 |
commit | 2a50b6c7200370f17c330fdd98e8eb00f7911e2c (patch) | |
tree | 9280bf2a88f1dc85e3e591085b1a8109c0adc552 | |
parent | 67352ffacc9f22171c50763247db8116af3fc49c (diff) |
Make bat::config::get_pager_executable availablebat-get-pager-executable
Ref #1490
-rw-r--r-- | Cargo.lock | 45 | ||||
-rw-r--r-- | Cargo.toml | 2 |
2 files changed, 44 insertions, 3 deletions
@@ -121,6 +121,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" [[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi 0.1.19", + "libc", + "winapi", +] + +[[package]] name = "autocfg" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -139,8 +150,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fd4b13b0233143ae151a66e0135d715b65f631d1028c40502cc88182bcb9f4fa" dependencies = [ "ansi_colours", + "atty", "bincode", "bytesize", + "clap", "clircle", "console", "content_inspector", @@ -148,6 +161,7 @@ dependencies = [ "encoding", "flate2", "globset", + "grep-cli", "nu-ansi-term", "once_cell", "path_abs", @@ -155,9 +169,11 @@ dependencies = [ "semver", "serde", "serde_yaml", + "shell-words", "syntect", "thiserror", "unicode-width", + "wild", ] [[package]] @@ -287,6 +303,7 @@ dependencies = [ "anstream", "anstyle", "clap_lex", + "once_cell", "strsim", "terminal_size", ] @@ -585,6 +602,12 @@ dependencies = [ ] [[package]] +name = "glob" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" + +[[package]] name = "globset" version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -627,6 +650,15 @@ checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" [[package]] name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hermit-abi" version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b" @@ -680,7 +712,7 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.2", "libc", "windows-sys 0.48.0", ] @@ -691,7 +723,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b" dependencies = [ - "hermit-abi", + "hermit-abi 0.3.2", "rustix 0.38.4", "windows-sys 0.48.0", ] @@ -1604,6 +1636,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" [[package]] +name = "wild" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05b116685a6be0c52f5a103334cbff26db643826c7b3735fc0a3ba9871310a74" +dependencies = [ + "glob", +] + +[[package]] name = "winapi" version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -15,7 +15,7 @@ name = "delta" path = "src/main.rs" [dependencies] -bat = { version = "0.23.0", default-features = false, features = ["regex-onig"] } +bat = { version = "0.23.0", default-features = false, features = ["minimal-application", "paging", "regex-onig"] } chrono = "0.4.26" chrono-humanize = "0.2.2" ansi_colours = "1.2.1" |