Skip to content
Myr

fix(confirm): ensure `--show-output` show the right answer (#853)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Nering · committed by GitHub · parent 93f6857 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:confirm/command.go+1 added-1 removed
47 unmodified lines
48 ).Run()49 if err != nil {50 return fmt.Errorf("unable to confirm: %w", err)51 }52 m = tm.(model)5354 if o.ShowOutput {55 confirmationText := m.negative56 if m.confirmation {
1 unmodified line
58 }59 fmt.Println(m.prompt, confirmationText)60 }6161 m = tm.(model)62 if m.confirmation {63 return nil64 }65
2 unmodified lines