Sha256: 119bab2b041e9c89cd67625ae343337f97c2b58320837d7ca13cfa013b569619

Contents?: true

Size: 432 Bytes

Versions: 3

Compression:

Stored size: 432 Bytes

Contents

#!/usr/bin/env ruby

# == Description
# Used by path completion functions to return first possible full path which matches the given basename for the given command.

require File.expand_path(File.join(File.dirname(__FILE__), "..","lib","lightning"))

command = ARGV.shift 
if command.nil?
  puts "No command given"
  exit 1
end
if ARGV.empty?
  puts "No arguments given" 
  exit 1
end
puts Lightning.translate(command, ARGV)
exit 0

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cldwalker-lightning-0.1.2 bin/lightning-full_path
cldwalker-lightning-0.2.0 bin/lightning-full_path
lightning-0.2.1 bin/lightning-full_path