Skip to content

tireymorris/cli_rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Builder

A minimal Ruby CLI framework with command registration, interactive mode, and autocomplete.

Usage

./cli.rb --help              # show commands
./cli.rb -i                  # interactive mode
./cli.rb namespace:command   # run command

Adding Commands

Create files in commands/ that register commands:

CLI::Registry.register('myapp:greet', 'Say hello') do |name = 'World'|
  puts "Hello, #{name}!"
end

Commands are auto-loaded from commands/*.rb.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages