Sha256: 66eb142b8d1af488052d29257059b067563d59056b8f377bc9d73d0da9b37969

Contents?: true

Size: 617 Bytes

Versions: 6

Compression:

Stored size: 617 Bytes

Contents

# Rgentpl
module Rgentpl
  # Command
  #
  # Application command
  module Command
    # Base command
    #
    # General command
    class Base < Thor
      map '-v' => :version

      desc 'version, -v', 'Show Ruby Generator Template version.'
      # @return [String] the test message
      def version
        say "Rgentpl version #{Rgentpl::VERSION}", :yellow
      end

      # Add generate group command
      register(Rgentpl::Command::Generate,
               'generate',
               'generate APP_NAME [-p|--app_path APP_PATH] [-t|--ctags CTAGS]',
               'Generate application')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rgentpl-1.0.9 lib/rgentpl/command/base.rb
rgentpl-1.0.8 lib/rgentpl/command/base.rb
rgentpl-1.0.7 lib/rgentpl/command/base.rb
rgentpl-1.0.6 lib/rgentpl/command/base.rb
rgentpl-1.0.5 lib/rgentpl/command/base.rb
rgentpl-1.0.4 lib/rgentpl/command/base.rb