Releases: Shopify/cli-ui
Releases · Shopify/cli-ui
TTY and ANSI fixes + Multiple selection prompt
- #30 Add the bug emoji as a glyph
- #31 Add chevron glyph, to be used for debug output
- #33 Remove use of dark blue ANSI
- #35 Fix interactive prompt for options > terminal rows
- #36 Add a truncater to prevent overlength output cascades in spingroup
- #38 Add support for multiple selection in prompt
- #40 Disable colour by default when !$stdout.tty?
- #42 Fix ansi problem
ID'd commands
Commands now run with an ID. If a command fails, the user will be told the ID:
This command ran with ID: 05643
Please include this information in any issues/report along with relevant logs
The file-based logs will include this ID prefixed to each line.
[05643] bundle install
[05643] Installing gems....
This intends to help with debugging specific runs.
Bugs and Styles
Bugfix: Handle case where stdin.getc
times out and is nil
in InteractivePrompt
Stylefix: Use +'' instead of String.new() to ensure mutable strings keep the right encoding
Bugfixes in terminal widths and Ruby 2.5
Changes
- Bugfix: Fix 💥 in progress bar at tiny terminal widths
- Bugfix: Fix StdoutRouter issue in Ruby 2.5 (#27) due to
IO.write
api change.
Making Asking Questions Easier
Add new block syntax for InteractivePrompt
CLI::UI::Prompt.ask("What is your choice?") do |handler|
handler.option("Choice 1") { |c| puts "Choice 1" }
handler.option("Choice 2") { |c| puts "Choice 2" }
end
Initial Stable Release
Renamed from Dev::
to CLI::
This was the only change, but an API breaker.
We now consider this a stable release.
v0.1.2: Self Clearing Interactive Prompts
Change Log: v0.1.1...v0.1.2
Interactive Prompts
Updates Interactive Prompts to self-clear and repeat the question with an answer:
Other
Also includes various test improvements
v0.1.1 : General Improvements and Documentation
Change Log: v0.0.2...v0.1.1
Frames
- Handle multi-byte characters better (like emoji! 👩💻 )
Spinners
- Dynamic spinner titles
- Better return value reporting
- Report exceptions from spinners
Interactive Prompts
- Handle multi-line input
- Handle highlighting better
- Handle character selection better with multi-byte characters
Progress Bar
- Better handling of backgrounds in some terminals
Documentation
- Added docs to all public facing interfaces
Other
- Various bug fixes and formatting improvements. Check out the Change Log for details.