Skip to content

Releases: Shopify/cli-ui

TTY and ANSI fixes + Multiple selection prompt

06 Nov 14:50
8075087
Compare
Choose a tag to compare
  • #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

15 May 14:07
f720c05
Compare
Choose a tag to compare

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

15 May 14:06
af2b3a3
Compare
Choose a tag to compare

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

15 May 14:04
67b8679
Compare
Choose a tag to compare

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

15 May 14:03
Compare
Choose a tag to compare

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

15 May 14:01
Compare
Choose a tag to compare

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

13 Dec 15:16
dc80bfd
Compare
Choose a tag to compare

Change Log: v0.1.1...v0.1.2

Interactive Prompts

Updates Interactive Prompts to self-clear and repeat the question with an answer:

2017-12-13 00_37_10

Other

Also includes various test improvements

v0.1.1 : General Improvements and Documentation

13 Dec 15:23
Compare
Choose a tag to compare

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.

v0.0.2

13 Dec 15:24
f21eb2d
Compare
Choose a tag to compare
v0.0.2 Pre-release
Pre-release
bump version to 0.0.2