Sha256: ad55dc10156b15a8ec7fa30e72c6ca996d20ab1e1061f294eaf50dbd42002727

Contents?: true

Size: 427 Bytes

Versions: 3

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

module Epub
  class CLI < Thor
    check_unknown_options!

    def self.exit_on_failure?
      true
    end

    desc "new PATH", "Create a new gem"
    def new(path)
      generator = Generator.new
      generator.destination_root = File.expand_path(path)
      generator.options = options
      generator.invoke_all
    end

    no_commands do
      # Add helper methods here
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
epub-rb-0.0.2 lib/epub/cli.rb
epub-rb-0.0.1 lib/epub/cli.rb
epub-rb-0.0.0 lib/epub/cli.rb