Sha256: fb5c4d43076f96193ab21d4796903afa8b64bf643a689ceb9beeca3179952e7c

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

require 'thor'

require 'mwc/utils/command_registry'
require 'mwc/config'
require 'mwc/commands/init'
require 'mwc/commands/compile'
require 'mwc/commands/server'

module Mwc
  # :nodoc:
  class Command < Thor
    include Utils::CommandRegistry

    class_option :env, desc: 'the prefer environment'

    desc 'version', 'show version'
    def version
      puts Mwc::VERSION
    end

    add_command Commands::Init
    add_command Commands::Compile
    add_command Commands::Server
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mwc-0.3.0 lib/mwc/command.rb