|
|
|
@ -33,6 +33,7 @@ impl Plugin for DialogPlugin {
|
|
|
|
|
SyntaxShape::String,
|
|
|
|
|
"The question to ask the user.",
|
|
|
|
|
)
|
|
|
|
|
.switch("abortable", "If set users can abort the prompt.", None)
|
|
|
|
|
.named(
|
|
|
|
|
"default",
|
|
|
|
|
SyntaxShape::Boolean,
|
|
|
|
@ -47,6 +48,8 @@ impl Plugin for DialogPlugin {
|
|
|
|
|
SyntaxShape::List(Box::new(SyntaxShape::String)),
|
|
|
|
|
"The items out of which one can be selected.",
|
|
|
|
|
)
|
|
|
|
|
.switch("fuzzy", "To add a fuzzy search to the select.", None)
|
|
|
|
|
.switch("abortable", "If set users can abort the prompt.", None)
|
|
|
|
|
.named(
|
|
|
|
|
"prompt",
|
|
|
|
|
SyntaxShape::String,
|
|
|
|
|