Sha256: fbc86fa925bd670ffd09162cdca423f2b4a9e816b0389db99fbeb048fdb5cf13

Contents?: true

Size: 467 Bytes

Versions: 3

Compression:

Stored size: 467 Bytes

Contents

#!/usr/bin/env ruby

-> { its -> { a } }
trap('INT') { exit! }

if ARGV.include?('autocomplete')
  command = ARGV.delete_if { |a| a == 'autocomplete' }
  %w{add cleanup config default init move refresh
     show status version}.select { |e| /^#{command}/ =~ e }
                         .map    { |c| puts c }
elsif ARGV.include?('path')
  puts File.expand_path File.dirname(__FILE__)
else
  require_relative '../lib/troo'
  Troo::Launcher.new(ARGV.dup).execute!
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
troo-0.0.15 bin/troo
troo-0.0.14 bin/troo
troo-0.0.13 bin/troo