Class: TheLocal::CLI
- Inherits:
-
Object
- Object
- TheLocal::CLI
- Defined in:
- lib/the_local/cli.rb
Overview
Rails-free entrypoint for the ‘the_local` executable. `the_local install` syncs the current bundle’s locals into .claude/agents/, so a plain gem can install without a Rails generator or a Rakefile.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(argv, out: $stdout) ⇒ CLI
constructor
A new instance of CLI.
Constructor Details
#initialize(argv, out: $stdout) ⇒ CLI
Returns a new instance of CLI.
10 11 12 13 |
# File 'lib/the_local/cli.rb', line 10 def initialize(argv, out: $stdout) @argv = argv @out = out end |
Instance Method Details
#call ⇒ Object
15 16 17 18 19 20 |
# File 'lib/the_local/cli.rb', line 15 def call case @argv.first when "install" then install else usage end end |