Skip to content

Commit

Permalink
Fix prompt not read from configured input reader but always from stdi…
Browse files Browse the repository at this point in the history
…n. (#122)
  • Loading branch information
Gerrit91 authored Jan 16, 2024
1 parent 0d07f28 commit bfd764f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/genericcli/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func PromptCustom(c *PromptConfig) error {
fmt.Fprintf(c.Out, "%s ", c.Message)
}

scanner := bufio.NewScanner(os.Stdin)
scanner := bufio.NewScanner(c.In)
scanner.Scan()
if err := scanner.Err(); err != nil {
return err
Expand Down

0 comments on commit bfd764f

Please sign in to comment.