#!/usr/bin/ruby.ruby3.4 
require 'fileutils'

if ENV["HOBODEV"]
  dev_root = File.expand_path ENV["HOBODEV"], FileUtils.pwd
  $:.unshift "#{dev_root}/hobo_support/lib"
else
  require 'rubygems'
end

begin
  require 'hobo_support/command'
rescue LoadError
  puts "The 'hobo_support' gem is not installed.
You probably need to set the HOBODEV environment variable to your local hobo git-repository path."
  exit
end

HoboSupport::Command.run(:hobo)
