Merge pull request #967 from tmccombs/clap-upgrade
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Clap upgrade
authored by Tavian Barnes · committed by GitHub · parents 5ec55ee, bbdb8b9 · Browse files · 3 files·+30 added−30 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+30 added−30 removed
- other:+30 added−30 removed
Provenance
- Commit
7db25a7- Tree
0f279ad- Author
Tavian Barnes <tavianator@tavianator.com>- Committer
GitHub <noreply@github.com>- Parent 1
5ec55ee- Parent 2
bbdb8b9
3 files changed+30 added−30 removed
modified:src/app.rs+4 added-4 removed
1-use clap::{crate_version, App, AppSettings, Arg, ColorChoice};1+use clap::{crate_version, AppSettings, Arg, ColorChoice, Command};2 3-pub fn build_app() -> App<'static> {3+pub fn build_app() -> Command<'static> {4 let clap_color_choice = if std::env::var_os("NO_COLOR").is_none() {5 ColorChoice::Auto6 } else {7 ColorChoice::Never8 };9 10- let mut app = App::new("fd")10+ let mut app = Command::new("fd")11 .version(crate_version!())12 .color(clap_color_choice)13 .setting(AppSettings::DeriveDisplayOrder)14- .setting(AppSettings::DontCollapseArgsInUsage)14+ .dont_collapse_args_in_usage(true)15 .after_help(16 "Note: `fd -h` prints a short and concise overview while `fd --help` gives all \17 details.",18 )752 unmodified linesmodified:Cargo.lock+24 added-24 removed
37 unmodified lines38 ]39 40 [[package]]41 name = "autocfg"42-version = "1.0.1"42+version = "1.1.0"43 source = "registry+https://github.com/rust-lang/crates.io-index"44-checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"44+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"45 46 [[package]]47 name = "bitflags"48 version = "1.3.2"10 unmodified lines59 ]60 61 [[package]]62 name = "cc"63-version = "1.0.72"63+version = "1.0.73"64 source = "registry+https://github.com/rust-lang/crates.io-index"65-checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee"65+checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"66 67 [[package]]68 name = "cfg-if"69 version = "1.0.0"14 unmodified lines84 ]85 86 [[package]]87 name = "clap"88-version = "3.0.13"88+version = "3.1.5"89 source = "registry+https://github.com/rust-lang/crates.io-index"90-checksum = "08799f92c961c7a1cf0cc398a9073da99e21ce388b46372c37f3191f2f3eed3e"90+checksum = "ced1892c55c910c1219e98d6fc8d71f6bddba7905866ce740066d8bfea859312"91 dependencies = [92 "atty",93 "bitflags",94 "indexmap",6 unmodified lines101 ]102 103 [[package]]104 name = "clap_complete"105-version = "3.0.5"105+version = "3.1.1"106 source = "registry+https://github.com/rust-lang/crates.io-index"107-checksum = "be4dabb7e2f006497e1da045feaa512acf0686f76b68d94925da2d9422dcb521"107+checksum = "df6f3613c0a3cddfd78b41b10203eb322cb29b600cbdf808a7d3db95691b8e25"108 dependencies = [109 "clap",110 ]111 112 [[package]]113 name = "crossbeam-utils"114-version = "0.8.5"114+version = "0.8.7"115 source = "registry+https://github.com/rust-lang/crates.io-index"116-checksum = "d82cfc11ce7f2c3faef78d8a684447b40d503d9681acebed6cb728d45940c4db"116+checksum = "b5e5bed1f1c269533fa816a0a5492b3545209a205ca1a54842be180eb63a16a6"117 dependencies = [118 "cfg-if",119 "lazy_static",120 ]98 unmodified lines219 checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"220 221 [[package]]222 name = "getrandom"223-version = "0.2.3"223+version = "0.2.5"224 source = "registry+https://github.com/rust-lang/crates.io-index"225-checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753"225+checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77"226 dependencies = [227 "cfg-if",228 "libc",229 "wasi",227 unmodified lines457 ]458 459 [[package]]460 name = "quote"461-version = "1.0.14"461+version = "1.0.15"462 source = "registry+https://github.com/rust-lang/crates.io-index"463-checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d"463+checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145"464 dependencies = [465 "proc-macro2",466 ]467 35 unmodified lines503 ]504 505 [[package]]506 name = "redox_syscall"507-version = "0.2.10"507+version = "0.2.11"508 source = "registry+https://github.com/rust-lang/crates.io-index"509-checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff"509+checksum = "8380fe0152551244f0747b1bf41737e0f8a74f97a14ccefd1148187271634f3c"510 dependencies = [511 "bitflags",512 ]513 49 unmodified lines563 checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"564 565 [[package]]566 name = "syn"567-version = "1.0.85"567+version = "1.0.86"568 source = "registry+https://github.com/rust-lang/crates.io-index"569-checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7"569+checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b"570 dependencies = [571 "proc-macro2",572 "quote",573 "unicode-xid",10 unmodified lines584 ]585 586 [[package]]587 name = "termcolor"588-version = "1.1.2"588+version = "1.1.3"589 source = "registry+https://github.com/rust-lang/crates.io-index"590-checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"590+checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"591 dependencies = [592 "winapi-util",593 ]594 21 unmodified lines616 ]617 618 [[package]]619 name = "textwrap"620-version = "0.14.2"620+version = "0.15.0"621 source = "registry+https://github.com/rust-lang/crates.io-index"622-checksum = "0066c8d12af8b5acd21e00547c3797fde4e8677254a7ee429176ccebbe93dd80"622+checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"623 dependencies = [624 "terminal_size",625 ]626 627 [[package]]628 name = "thread_local"629-version = "1.1.3"629+version = "1.1.4"630 source = "registry+https://github.com/rust-lang/crates.io-index"631-checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd"631+checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180"632 dependencies = [633 "once_cell",634 ]635 79 unmodified linesmodified:Cargo.toml+2 added-2 removed
28 unmodified lines29303132333433343536373845 unmodified lines28 unmodified linesname = "fd"path = "src/main.rs"
[build-dependencies]clap = "3.0"clap_complete = "3.0"clap = "3.1"clap_complete = "3.1"version_check = "0.9"
[dependencies]ansi_term = "0.12"45 unmodified lines