github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/prompting/prompter.go (about) 1 package prompting 2 3 // Prompter is the interface to which types supporting prompting must adhere. 4 // Implementations are not required to be safe for concurrent usage. 5 type Prompter interface { 6 // Message should print a message to the user, returning an error if this is 7 // not possible. 8 Message(string) error 9 // Prompt should print a prompt to the user, returning the user's response 10 // or an error if this is not possible. 11 Prompt(string) (string, error) 12 }