Class: AdventOfCodeGenerator::CLI

Inherits:
Thor
  • Object
show all
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

Returns:

  • (Boolean)


46
47
48
# File 'lib/advent_of_code_generator/cli.rb', line 46

def self.exit_on_failure?
  true
end

Instance Method Details

#generateObject



40
41
42
43
44
# File 'lib/advent_of_code_generator/cli.rb', line 40

def generate
  generator = AdventOfCodeGenerator::Generator.new(options, content)

  generator.call
end