Class: AdventOfCodeGenerator::CLI
- Inherits:
-
Thor
- Object
- Thor
- AdventOfCodeGenerator::CLI
- Defined in:
- lib/advent_of_code_generator/cli.rb
Overview
Command Line Interface for generating Advent of Code puzzle templates
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
46 47 48 |
# File 'lib/advent_of_code_generator/cli.rb', line 46 def self.exit_on_failure? true end |
Instance Method Details
#generate ⇒ Object
40 41 42 43 44 |
# File 'lib/advent_of_code_generator/cli.rb', line 40 def generate generator = AdventOfCodeGenerator::Generator.new(, content) generator.call end |