Sha256: 0b3d1a7a8e58100f3e6ab5ad3b62f59b793a8c64c54f7095ef208f3f7ed0f3da

Contents?: true

Size: 375 Bytes

Versions: 1

Compression:

Stored size: 375 Bytes

Contents

# frozen_string_literal: true

require "thor"
require "cai/jarvis/version"

module CAI
  module JARVIS
    # Command Line Interface for JARVIS
    class CLI < Thor
      def self.exit_on_failure? = true

      map %w[--version -v] => :version

      desc "--version, -v", "print the current version"
      def version
        puts JARVIS::VERSION
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cai-jarvis-0.1.0 lib/cai/jarvis/cli.rb