
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Simple CLI output helpers.
Output formatted information to the CLI.
require 'bogo/ui'
ui = Bogo::Ui.new(
app_name: 'TestApp'
)
ui.info 'This is information'
ui.warn 'This is a warning'
ui.error 'This is an error'
ui.info "This is information with #{ui.color('color', :bold, :green)}"
result = ui.ask('Type a word')
ui.info "You provided: #{result}"
This is a table helper. Under the hood it uses the Command Line Reporter with a few modifications. Direct usage:
require 'bogo/ui'
ui = Bogo::Ui.new(app_name: 'TestApp')
Bogo::Ui::Table.new(ui) do
table do
row do
column 'Name'
column 'Age'
end
row do
column 'me'
column '100'
end
end
end.display
This helper allows for appending data to an existing table. Useful for when polling for updates and wanting to keep the existing table structure:
require 'bogo/ui'
ui = Bogo::Ui.new(app_name: 'TestApp')
tbl = Bogo::Ui::Table.new(ui) do
table do
row do
column 'Name'
column 'Age'
end
row do
column 'me'
column '100'
end
end
end
tbl.display
tbl.update do
row do
column 'you'
column '50'
end
end
tbl.display
FAQs
Unknown package
We found that bogo-ui demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.