Merge pull request #237 from nushell/select_completions

little cleanup
This commit is contained in:
JT 2021-10-16 07:56:42 +13:00 committed by GitHub
commit b7ad4dc78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 51 deletions

52
Cargo.lock generated
View file

@ -154,21 +154,6 @@ dependencies = [
"chrono", "chrono",
] ]
[[package]]
name = "console"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3993e6445baa160675931ec041a5e03ca84b9c6e32a056150d3aa2bdda0a1f45"
dependencies = [
"encode_unicode",
"lazy_static",
"libc",
"regex",
"terminal_size",
"unicode-width",
"winapi",
]
[[package]] [[package]]
name = "console" name = "console"
version = "0.15.0" version = "0.15.0"
@ -270,26 +255,13 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "dialoguer"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c9dd058f8b65922819fabb4a41e7d1964e56344042c26efbccd465202c23fa0c"
dependencies = [
"console 0.14.1",
"lazy_static",
"tempfile",
"zeroize",
]
[[package]] [[package]]
name = "dialoguer" name = "dialoguer"
version = "0.9.0" version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61579ada4ec0c6031cfac3f86fdba0d195a7ebeb5e36693bd53cb5999a25beeb" checksum = "61579ada4ec0c6031cfac3f86fdba0d195a7ebeb5e36693bd53cb5999a25beeb"
dependencies = [ dependencies = [
"console 0.15.0", "console",
"fuzzy-matcher",
"lazy_static", "lazy_static",
"tempfile", "tempfile",
"zeroize", "zeroize",
@ -358,7 +330,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"assert_cmd", "assert_cmd",
"crossterm", "crossterm",
"dialoguer 0.9.0", "dialoguer",
"miette", "miette",
"nu-cli", "nu-cli",
"nu-command", "nu-command",
@ -374,15 +346,6 @@ dependencies = [
"tempfile", "tempfile",
] ]
[[package]]
name = "fuzzy-matcher"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54614a3312934d066701a80f20f15fa3b56d67ac7722b39eea5b4c9dd1d66c94"
dependencies = [
"thread_local",
]
[[package]] [[package]]
name = "getrandom" name = "getrandom"
version = "0.2.3" version = "0.2.3"
@ -612,7 +575,7 @@ version = "0.1.0"
dependencies = [ dependencies = [
"bytesize", "bytesize",
"chrono", "chrono",
"dialoguer 0.8.0", "dialoguer",
"glob", "glob",
"lscolors", "lscolors",
"nu-engine", "nu-engine",
@ -1214,15 +1177,6 @@ dependencies = [
"syn", "syn",
] ]
[[package]]
name = "thread_local"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd"
dependencies = [
"once_cell",
]
[[package]] [[package]]
name = "time" name = "time"
version = "0.1.44" version = "0.1.44"

View file

@ -11,7 +11,7 @@ members = ["crates/nu-cli", "crates/nu-engine", "crates/nu-parser", "crates/nu-c
[dependencies] [dependencies]
reedline = { git = "https://github.com/nushell/reedline", branch = "main" } reedline = { git = "https://github.com/nushell/reedline", branch = "main" }
crossterm = "0.21.*" crossterm = "0.21.*"
dialoguer = { version = "0.9.0", features = ["fuzzy-select"] } dialoguer = "0.9.0"
nu-cli = { path="./crates/nu-cli" } nu-cli = { path="./crates/nu-cli" }
nu-command = { path="./crates/nu-command" } nu-command = { path="./crates/nu-command" }
nu-engine = { path="./crates/nu-engine" } nu-engine = { path="./crates/nu-engine" }

View file

@ -25,7 +25,7 @@ chrono = { version = "0.4.19", features = ["serde"] }
terminal_size = "0.1.17" terminal_size = "0.1.17"
lscolors = { version = "0.8.0", features = ["crossterm"] } lscolors = { version = "0.8.0", features = ["crossterm"] }
bytesize = "1.1.0" bytesize = "1.1.0"
dialoguer = "0.8.0" dialoguer = "0.9.0"
[features] [features]
trash-support = ["trash"] trash-support = ["trash"]