mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 09:04:18 +01:00
Bump dialoguer
to 0.11.0
(#10510)
Includes fixes for breaking changes Supersedes #10494
This commit is contained in:
parent
d2f513da36
commit
4a26719b0c
5
Cargo.lock
generated
5
Cargo.lock
generated
@ -1072,13 +1072,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "dialoguer"
|
name = "dialoguer"
|
||||||
version = "0.10.4"
|
version = "0.11.0"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "59c6f2989294b9a498d3ad5491a79c6deb604617378e1cdc4bfc1c1361fe2f87"
|
checksum = "658bce805d770f407bc62102fca7c2c64ceef2fbcb2b8bd19d2765ce093980de"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"console",
|
"console",
|
||||||
"fuzzy-matcher",
|
"fuzzy-matcher",
|
||||||
"shell-words",
|
"shell-words",
|
||||||
|
"thiserror",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
@ -38,7 +38,7 @@ chrono-humanize = "0.2.3"
|
|||||||
chrono-tz = "0.8"
|
chrono-tz = "0.8"
|
||||||
crossterm = "0.27"
|
crossterm = "0.27"
|
||||||
csv = "1.2"
|
csv = "1.2"
|
||||||
dialoguer = { default-features = false, features = ["fuzzy-select"], version = "0.10" }
|
dialoguer = { default-features = false, features = ["fuzzy-select"], version = "0.11" }
|
||||||
digest = { default-features = false, version = "0.10" }
|
digest = { default-features = false, version = "0.10" }
|
||||||
dtparse = "2.0"
|
dtparse = "2.0"
|
||||||
encoding_rs = "0.8"
|
encoding_rs = "0.8"
|
||||||
|
@ -185,13 +185,13 @@ impl Command for InputList {
|
|||||||
// };
|
// };
|
||||||
|
|
||||||
let ans: InteractMode = if call.has_flag("multi") {
|
let ans: InteractMode = if call.has_flag("multi") {
|
||||||
let mut multi_select = MultiSelect::new(); //::with_theme(&theme);
|
let multi_select = MultiSelect::new(); //::with_theme(&theme);
|
||||||
|
|
||||||
InteractMode::Multi(
|
InteractMode::Multi(
|
||||||
if !prompt.is_empty() {
|
if !prompt.is_empty() {
|
||||||
multi_select.with_prompt(&prompt)
|
multi_select.with_prompt(&prompt)
|
||||||
} else {
|
} else {
|
||||||
&mut multi_select
|
multi_select
|
||||||
}
|
}
|
||||||
.items(&options)
|
.items(&options)
|
||||||
.report(false)
|
.report(false)
|
||||||
@ -199,13 +199,13 @@ impl Command for InputList {
|
|||||||
.map_err(|err| ShellError::IOError(format!("{}: {}", INTERACT_ERROR, err)))?,
|
.map_err(|err| ShellError::IOError(format!("{}: {}", INTERACT_ERROR, err)))?,
|
||||||
)
|
)
|
||||||
} else if call.has_flag("fuzzy") {
|
} else if call.has_flag("fuzzy") {
|
||||||
let mut fuzzy_select = FuzzySelect::new(); //::with_theme(&theme);
|
let fuzzy_select = FuzzySelect::new(); //::with_theme(&theme);
|
||||||
|
|
||||||
InteractMode::Single(
|
InteractMode::Single(
|
||||||
if !prompt.is_empty() {
|
if !prompt.is_empty() {
|
||||||
fuzzy_select.with_prompt(&prompt)
|
fuzzy_select.with_prompt(&prompt)
|
||||||
} else {
|
} else {
|
||||||
&mut fuzzy_select
|
fuzzy_select
|
||||||
}
|
}
|
||||||
.items(&options)
|
.items(&options)
|
||||||
.default(0)
|
.default(0)
|
||||||
@ -214,12 +214,12 @@ impl Command for InputList {
|
|||||||
.map_err(|err| ShellError::IOError(format!("{}: {}", INTERACT_ERROR, err)))?,
|
.map_err(|err| ShellError::IOError(format!("{}: {}", INTERACT_ERROR, err)))?,
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
let mut select = Select::new(); //::with_theme(&theme);
|
let select = Select::new(); //::with_theme(&theme);
|
||||||
InteractMode::Single(
|
InteractMode::Single(
|
||||||
if !prompt.is_empty() {
|
if !prompt.is_empty() {
|
||||||
select.with_prompt(&prompt)
|
select.with_prompt(&prompt)
|
||||||
} else {
|
} else {
|
||||||
&mut select
|
select
|
||||||
}
|
}
|
||||||
.items(&options)
|
.items(&options)
|
||||||
.default(0)
|
.default(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user