Registry / cli / samovar

samovar

JSON →
library2.5.0rbrubygemsunverified

Samovar is a flexible option parser with excellent support for sub-commands and help documentation.

gem install samovar
INSTALL
IMPORT
SIG · SAMOVAR
S
samovar
clirubyv2.5.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Samovar
require 'samovar'

Define and run a simple CLI command with Samovar.

require 'samovar' class MyCommand < Samovar::Command options do option '--name <name>', "Your name", default: 'World' end def invoke puts "Hello, #{options[:name]}!" end end MyCommand.run(['--name', 'Ruby'])
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.5.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Resources
samovar — gem install samovar · libregistry