Sha256: d471d384ab1f1ce3eff5d2159694e3416cfc1fad0473837680ca7ac331562eff

Contents?: true

Size: 314 Bytes

Versions: 6

Compression:

Stored size: 314 Bytes

Contents

require "thor"

module Kanji
  class CLI < Thor
    class Generate < Thor
      desc "type NAME ATTRIBUTES", "Generate a new type and all of it's dependencies"
      def type(name, *attributes)
        require "kanji/generators/type"
        Generators::Type.new(name, attributes).call
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kanji-web-0.3.1 lib/kanji/cli/generate.rb
kanji-web-0.3.0 lib/kanji/cli/generate.rb
kanji-web-0.2.2 lib/kanji/cli/generate.rb
kanji-web-0.2.1 lib/kanji/cli/generate.rb
kanji-web-0.2.0 lib/kanji/cli/generate.rb
kanji-web-0.1.0 lib/kanji/cli/generate.rb