Sha256: 593b0a03f20f2ff974ced0618baab4fb223544015014fabf934a29aae4f56043
Contents?: true
Size: 532 Bytes
Versions: 2
Compression:
Stored size: 532 Bytes
Contents
#!/usr/bin/env ruby bin_dir = File.dirname(File.realpath(__FILE__)) $LOAD_PATH.unshift(File.expand_path(File.join('..', 'lib'), bin_dir)) require 'upm' unless tool = UPM::Tool.for_os $stderr.puts "Error: I don't recognize this OS, or its package manager." exit 1 end if ARGV.any? { |arg| ["help", "version", "--help", "--version", "-h", "-v"].include? arg } tool.help else command, *args = ARGV if command.nil? tool.help else begin tool.call_command command, *args rescue Interrupt end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upm-0.1.18 | bin/upm |
upm-0.1.17 | bin/upm |