Add StandardRB and get some fixes

This commit is contained in:
Dan Milne
2025-01-27 16:13:56 +11:00
parent ba4f8b9c2c
commit e0f7805599
15 changed files with 150 additions and 143 deletions

View File

@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
# Add lib directory to load path
lib_path = File.expand_path('../lib', __dir__)
lib_path = File.expand_path("../lib", __dir__)
$LOAD_PATH.unshift(lib_path) unless $LOAD_PATH.include?(lib_path)
require 'picopackage'
require "picopackage"
begin
Picopackage::CLI.run(ARGV)
rescue => e
warn "Error: #{e.message}"
warn e.backtrace if ENV['DEBUG']
warn e.backtrace if ENV["DEBUG"]
exit 1
end