Sha256: bb6717241de90897669d31e100886baf277c4be716297db9a1b34c938fb2cc68
Contents?: true
Size: 863 Bytes
Versions: 3
Compression:
Stored size: 863 Bytes
Contents
require 'thor' require 'pathname' module Mimi class CLI < Thor map %w(--version -v) => :__print_version desc '--version, -v', 'Display version' def __print_version puts "mimi v#{Mimi::VERSION}" end desc 'create NAME [PATH]', 'Create application in the specified directory' def create(name, path = Pathname.pwd) app_generator = Mimi::CLI::AppGenerator.new(name, path) puts " name: #{app_generator.app_name}" puts " path: #{app_generator.target_path}" puts "app_root_path: #{app_generator.app_root_path}" puts " module_name: #{app_generator.module_name}" puts app_generator.generate # (dry_run: truew) end private def app_name_to_class_name(name) end end # class CLI end # module Mimi require_relative './version' require_relative 'cli/app_generator'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mimi-0.1.4 | lib/mimi/cli.rb |
mimi-0.1.3 | lib/mimi/cli.rb |
mimi-0.1.1 | lib/mimi/cli.rb |