Sha256: 093b16517e9cc520ffb4c66839d48a7bc9e68ec5a6a53123e8a861c08bd5f408

Contents?: true

Size: 510 Bytes

Versions: 5

Compression:

Stored size: 510 Bytes

Contents

# frozen_string_literal: true

require 'thor'
require 'headdesk'
require 'awesome_print'

Dir[File.dirname(__FILE__) + '/cli_commands/*.rb'].each { |file| require file }

module Headdesk
  #
  # headdesk CLI
  #
  class CLI < Thor
    no_commands do
      def print_update_message(stream = STDERR)
        stream.puts "Latest version is #{Headdesk::Versions.latest_version}, please run 'bundle update headdesk'".red
      end
    end

    Headdesk::CliCommand.each do |cmd|
      include cmd
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
headdesk-0.12.0 lib/headdesk/cli.rb
headdesk-0.11.3 lib/headdesk/cli.rb
headdesk-0.11.2 lib/headdesk/cli.rb
headdesk-0.11.1 lib/headdesk/cli.rb
headdesk-0.11.0 lib/headdesk/cli.rb