Sha256: 636454753ff2de8f14c26cb3d72fe85f798f9b0f2e7d6d7757e630eb935fb396

Contents?: true

Size: 711 Bytes

Versions: 6

Compression:

Stored size: 711 Bytes

Contents

require 'marv/cli/project'
require 'marv/cli/server'

module Marv
  module CLI
    class Commands < Project

      # Print version
      desc "version", "Show version information"
      map %w(--version -v) => :version
      def version
        require_relative "version"
        puts "v#{Marv::VERSION}"
      end

      # Configure marv
      desc "config", "Configure Marv projects and servers"
      long_desc "Creates a global config.rb file that can be used to auto-configure your projects and servers"
      def config
        Marv::Global.new(self, true)
      end

      desc "server [SUBCOMMAND]", "Manage marv servers (create, start and more...)"
      subcommand "server", Server

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
marv-0.8.2 lib/marv/cli.rb
marv-0.8.0 lib/marv/cli.rb
marv-0.7.3 lib/marv/cli.rb
marv-0.7.2 lib/marv/cli.rb
marv-0.7.1 lib/marv/cli.rb
marv-0.7.0 lib/marv/cli.rb