Sha256: e29bf21413dc821ef0f90b2e4708d4d723c3e62eb7bb6946119c78dd6e64c839
Contents?: true
Size: 458 Bytes
Versions: 7
Compression:
Stored size: 458 Bytes
Contents
require 'tap/generator/base' require 'tap/generator/generate' env = Tap::Env.instance if ARGV.empty? || ARGV == ['-T'] puts env.summarize(:generators) {|const| const.document[const.name]['generator'] } exit end name = ARGV.shift const = env.search(:generators, name) or raise "unknown generator: #{name}" generator_class = const.constantize generator, argv = generator_class.instantiate(ARGV) generator.extend(Tap::Generator::Generate).process(*argv)
Version data entries
7 entries across 7 versions & 2 rubygems