require 'dev/ui'
Dev::UI::Frame.open('{{*}} {{bold:a}}', color: :green) do
Dev::UI::Frame.open('{{i}} b', color: :magenta) do
Dev::UI::Frame.open('{{?}} c', color: :cyan) do
sg = Dev::UI::SpinGroup.new
sg.add('wow') { sleep(2.5) }
sg.add('such spin') { sleep(1.6) }
sg.add('many glyph') { sleep(2.0) }
sg.wait
end
end
Dev::UI::Frame.divider('{{v}} lol')
puts 'words'
sg = Dev::UI::SpinGroup.new
sg.add('more spins') { sleep(0.5) ; raise 'oh no' }
sg.wait
end
forked from Shopify/cli-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Minimalistic terminal user interface library
License
Nitrodist/dev-ui
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Minimalistic terminal user interface library
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Ruby 100.0%