Sha256: e16591405ba9aef40fcf1ea0d88c10a85cd85940d88874f2b6c855dcf8297a63
Contents?: true
Size: 547 Bytes
Versions: 1
Compression:
Stored size: 547 Bytes
Contents
module Zync module Generators class Cli < Thor::Group include Thor::Actions def setup generator_kind = ARGV.delete_at(0).to_s.downcase.to_sym if ARGV[0].present? generator_class = Zync::Generators.mappings[generator_kind] if generator_class args = ARGV.empty? && generator_class.require_arguments? ? ["-h"] : ARGV generator_class.start(args) else puts "FAIL" # TODO: specify generators end end end end # Generators end # Zync
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zync-gen-0.1.0 | lib/zync-gen/generators/cli.rb |