diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/cli_interactor.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/cli_interactor.rs b/src/lib/cli_interactor.rs index 7d67961..e6154a2 100644 --- a/src/lib/cli_interactor.rs +++ b/src/lib/cli_interactor.rs | |||
| @@ -46,10 +46,10 @@ impl InteractorPrompt for Interactor { | |||
| 46 | } | 46 | } |
| 47 | fn choice(&self, parms: PromptChoiceParms) -> Result<usize> { | 47 | fn choice(&self, parms: PromptChoiceParms) -> Result<usize> { |
| 48 | let mut choice = dialoguer::Select::with_theme(&self.theme); | 48 | let mut choice = dialoguer::Select::with_theme(&self.theme); |
| 49 | if !parms.prompt.is_empty() { | 49 | choice |
| 50 | choice.with_prompt(parms.prompt); | 50 | .with_prompt(parms.prompt) |
| 51 | } | 51 | .report(parms.report) |
| 52 | choice.report(parms.report).items(&parms.choices); | 52 | .items(&parms.choices); |
| 53 | if let Some(default) = parms.default { | 53 | if let Some(default) = parms.default { |
| 54 | if std::env::var("NGITTEST").is_err() { | 54 | if std::env::var("NGITTEST").is_err() { |
| 55 | choice.default(default); | 55 | choice.default(default); |