Sha256: c8f63223ceb868776f19b3e5f56390c0719c1d9429feaaba9561de625868a19a

Contents?: true

Size: 540 Bytes

Versions: 8

Compression:

Stored size: 540 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
      # :reek:UtilityFunction
      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

8 entries across 8 versions & 1 rubygems

Version Path
headdesk-0.17.0 lib/headdesk/cli.rb
headdesk-0.16.2 lib/headdesk/cli.rb
headdesk-0.16.1 lib/headdesk/cli.rb
headdesk-0.16.0 lib/headdesk/cli.rb
headdesk-0.15.1 lib/headdesk/cli.rb
headdesk-0.15.0 lib/headdesk/cli.rb
headdesk-0.14.0 lib/headdesk/cli.rb
headdesk-0.13.0 lib/headdesk/cli.rb