#!/usr/bin/env ruby # == Description # Used to complete a lightning command require File.expand_path(File.join(File.dirname(__FILE__), "..","lib","lightning")) if (command = ARGV.shift) puts Lightning.complete(command, ENV["COMP_LINE"]) exit 0 else puts "No command given" exit 1 end