Behavior Enhancement: make user press "S" only once to set, asks to install AND set if tool uninstalled
This commit is contained in:
parent
3bbc1edb19
commit
7cbe38b011
@ -515,7 +515,14 @@ set' bs input@(_, ListResult {..}) = do
|
|||||||
(V (NotInstalled tool _)) -> do
|
(V (NotInstalled tool _)) -> do
|
||||||
promptAnswer <- getUserPromptResponse userPrompt
|
promptAnswer <- getUserPromptResponse userPrompt
|
||||||
case promptAnswer of
|
case promptAnswer of
|
||||||
PromptYes -> install' bs input
|
PromptYes -> do
|
||||||
|
res <- install' bs input
|
||||||
|
case res of
|
||||||
|
(Left err) -> pure $ Left (prettyShow err)
|
||||||
|
(Right _) -> do
|
||||||
|
logInfo "Setting now..."
|
||||||
|
set' bs input
|
||||||
|
|
||||||
PromptNo -> pure $ Left (prettyShow e)
|
PromptNo -> pure $ Left (prettyShow e)
|
||||||
where
|
where
|
||||||
userPrompt = L.toStrict $
|
userPrompt = L.toStrict $
|
||||||
|
Loading…
Reference in New Issue
Block a user