Class: LLMExperiment::CLI::NewCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/llm_experiment/cli/new_command.rb

Constant Summary collapse

NAME =
"new"
SUMMARY =
"scaffold a new experiment directory"

Instance Method Summary collapse

Methods inherited from Command

#call, #initialize, summary

Constructor Details

This class inherits a constructor from LLMExperiment::CLI::Command

Instance Method Details

#add_options(parser) ⇒ Object



9
10
11
# File 'lib/llm_experiment/cli/new_command.rb', line 9

def add_options(parser)
  parser.banner = "Usage: llmx new NAME"
end

#run(argv) ⇒ Object



13
14
15
16
# File 'lib/llm_experiment/cli/new_command.rb', line 13

def run(argv)
  target = argv.shift or raise Error, "usage: llmx new NAME"
  Scaffold.new(target).create
end