Sha256: b1c3982ef8cdbba8e068a49d6d6715d87b0e13dbcae0d5a43eb57d2cd831791f

Contents?: true

Size: 266 Bytes

Versions: 7

Compression:

Stored size: 266 Bytes

Contents

require_relative '../version'

class Freighthop::CLI::Version

  def initialize(*args)
    @args = args
  end

  def run
    puts "Freighthop #{Freighthop::VERSION}"
  end

  def self.match?(*args)
    ['version', '-v', '--version' ].include?(args.first)
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
freighthop-0.6.1 lib/freighthop/cli/version.rb
freighthop-0.6.0 lib/freighthop/cli/version.rb
freighthop-0.5.2 lib/freighthop/cli/version.rb
freighthop-0.5.1 lib/freighthop/cli/version.rb
freighthop-0.5.0 lib/freighthop/cli/version.rb
freighthop-0.4.1 lib/freighthop/cli/version.rb
freighthop-0.4.0 lib/freighthop/cli/version.rb