Sha256: 716626b6fb6bf11939e68b479a18ffc1b7408874676b92a8253a4fcb41c70fb0
Contents?: true
Size: 608 Bytes
Versions: 3
Compression:
Stored size: 608 Bytes
Contents
require 'thor' require 'tanuki/universe' require 'tanuki/universe/version' require 'tanuki/universe/commands/generate' module Tanuki module Universe class Cli < Thor include Thor::Actions DEFAULT_CONFIG = './config.json' desc 'version', 'Display tanuki-universe version.' def version puts Tanuki::Universe::VERSION end desc 'generate', 'Generate universe file.' method_option :config, aliases: '-c', default: DEFAULT_CONFIG def generate Tanuki::Universe::Commands::Generate.new(options['config']) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tanuki-universe-0.0.5 | lib/tanuki/universe/cli.rb |
tanuki-universe-0.0.4 | lib/tanuki/universe/cli.rb |
tanuki-universe-0.0.3 | lib/tanuki/universe/cli.rb |