Sha256: 11accd7774d358324a130a5e664db6e2eb16916764ea5177cc36460a20f8641c

Contents?: true

Size: 416 Bytes

Versions: 15

Compression:

Stored size: 416 Bytes

Contents

require "thor"

module Nextgen
  class CLI < Thor
    extend ThorExtensions

    map %w[-v --version] => "version"

    desc "create APP_PATH", "Generate a Rails app interactively in APP_PATH"
    def create(app_path)
      Commands::Create.run(app_path, options)
    end

    desc "version", "Display nextgen version", hide: true
    def version
      say "nextgen/#{VERSION} #{RUBY_DESCRIPTION}"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
nextgen-0.14.0 lib/nextgen/cli.rb
nextgen-0.13.0 lib/nextgen/cli.rb
nextgen-0.12.0 lib/nextgen/cli.rb
nextgen-0.11.0 lib/nextgen/cli.rb
nextgen-0.10.0 lib/nextgen/cli.rb
nextgen-0.9.0 lib/nextgen/cli.rb
nextgen-0.8.0 lib/nextgen/cli.rb
nextgen-0.7.0 lib/nextgen/cli.rb
nextgen-0.6.0 lib/nextgen/cli.rb
nextgen-0.5.1 lib/nextgen/cli.rb
nextgen-0.5.0 lib/nextgen/cli.rb
nextgen-0.4.0 lib/nextgen/cli.rb
nextgen-0.3.0 lib/nextgen/cli.rb
nextgen-0.2.0 lib/nextgen/cli.rb
nextgen-0.1.0 lib/nextgen/cli.rb