Skip to content

Commit

Permalink
Fix duplicate code after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
lammel committed Jul 18, 2023
1 parent fccb19c commit bfec952
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions interactive_textinput_printer.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package pterm

import (
"io"
"strings"

"atomicgo.dev/cursor"
Expand Down Expand Up @@ -71,12 +70,6 @@ func (p InteractiveTextInputPrinter) WithOnInterruptFunc(exitFunc func()) *Inter
return &p
}

// WithWriter sets the custom Writer.
func (p InteractiveTextInputPrinter) WithWriter(writer io.Writer) *InteractiveTextInputPrinter {
p.Writer = writer
return &p
}

// Show shows the interactive select menu and returns the selected entry.
func (p InteractiveTextInputPrinter) Show(text ...string) (string, error) {
// should be the first defer statement to make sure it is executed last
Expand Down

0 comments on commit bfec952

Please sign in to comment.