Sha256: bd397c90d222cc4fc8914a87ec8806faa0db6e64c41736f8842b4b5b98af56df

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 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}.find_all { |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

1 entries across 1 versions & 1 rubygems

Version Path
troo-0.0.9 bin/troo