Sha256: 15f4177e61e095e506dae51d4e04fb00e65993ddba0236fcc32ab0a3442b19f9

Contents?: true

Size: 585 Bytes

Versions: 1

Compression:

Stored size: 585 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/watch'
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::Watch
    add_command Commands::Server
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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