tty-prompt icon indicating copy to clipboard operation
tty-prompt copied to clipboard

Unable to define default value for multiline

Open PhilippePerret opened this issue 3 years ago • 0 comments

Describe the problem

Tried:

prompt = TTY::MyPrompt.new
res = prompt.multiline("Your description:", **{default: "My default description"})
# => Edit field without default value

Doesn't work with DSL neither.

Environment

  • OS version: MacOS 13.1
  • Ruby version: 2.7.3p183
  • TTY::Prompt version: 0.23.1

Thanks

PhilippePerret avatar Feb 06 '23 06:02 PhilippePerret