tty-prompt v0.19.0 Release Notes

Release Date: 2019-05-27 // over 2 years ago
  • ➕ Added

    • ➕ Add Prompt#debug to allow displaying values in terminal's top right corner
    • ➕ Add :max to limit number of choices in #multi_select prompt
    • ➕ Add :value to pre populate #ask prompt line content
    • ➕ Add :auto_hint to expand default hint in #expand prompt by Ewoudt Kellerman(@hellola)
    • ➕ Add Timer to track and timeout code execution

    🔄 Changed

    • Change Paginator to expose #start_index & #end_index
    • 🔄 Change Paginator to figure out #start_index based on per page size and adjust boundaries to match active selection
    • 🔄 Change #ask prompt to allow no question
    • 🔄 Change #enum_select to automatically assigned non-disabled default option
    • 🔄 Change #enum_select to set default choice when navigating by page
    • 🔄 Change #select & #multi_select to allow navigation by page with left/right keys
    • 🔄 Change #keypress to use Timer
    • 🔄 Change Choice#from to allow any object coercible to string
    • 🔄 Change to remove test artifacts from the gem bundle
    • 🔄 Change to remove timers dependency
    • ⚡️ Change to update tty-reader dependency