Sha256: 22907913305cccbc6f3c22e091a642bd6dbbb783142484c5ab64e2cd0e767581

Contents?: true

Size: 469 Bytes

Versions: 1

Compression:

Stored size: 469 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

    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.2.0 lib/mwc/command.rb