Skip to content

Commit

Permalink
Enforce using std raw output for confirmation inputs (#2693)
Browse files Browse the repository at this point in the history
  • Loading branch information
gvicentin committed Apr 30, 2024
1 parent 8ecd7f4 commit 10560a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Guilherme Bruzzi <[email protected]>
Guilherme Garnier <[email protected]>
Guilherme Paixão <[email protected]>
Guilherme Rezende <[email protected]>
Guilherme Vicentin <[email protected]>
Guilherme Vicentin <[email protected]>
Gustavo Henrique <[email protected]>
Hugo Seixas Antunes <[email protected]>
Igor Fernandes <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions cmd/confirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func (cmd *ConfirmationCommand) Confirm(context *Context, question string) bool
if cmd.yes {
return true
}
context.RawOutput()
fmt.Fprintf(context.Stdout, `%s (y/n) `, question)
var answer string
if context.Stdin != nil {
Expand Down

0 comments on commit 10560a3

Please sign in to comment.