fix(cli): suppress secondary prompts from straight on -!/--force
The -!/--force flags suppress straight's 'how to proceed' prompts, but not the secondary ones like 'Really delete remote "origin"?'. This fixes that. Fix: #7906
This commit is contained in:
parent
42923be0b3
commit
83aa40797e
1 changed files with 5 additions and 0 deletions
|
@ -723,6 +723,11 @@ original state.")
|
|||
(let (autoload-compute-prefixes)
|
||||
(apply fn args)))
|
||||
|
||||
(defadvice! doom-cli--straight-suppress-confirm-a (&rest _)
|
||||
:before-until #'straight-are-you-sure
|
||||
(and (bound-and-true-p doom-cli--context)
|
||||
(doom-cli-context-suppress-prompts-p doom-cli--context)))
|
||||
|
||||
(defadvice! doom-cli--straight-fallback-to-tty-prompt-a (fn prompt actions)
|
||||
"Modifies straight to prompt on the terminal when in noninteractive sessions."
|
||||
:around #'straight--popup-raw
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue