require "octopussy" require "hub" require "thor" $LOAD_PATH.unshift File.join(File.dirname(__FILE__), *%w[.. lib]) require 'nachos/version' require 'nachos/cli' require 'nachos/github' class Nachos attr_reader :args, :command attr_accessor :out, :err, :exit_code def initialize(*args) @args = args @command = args.first || "help" @exit_code = 0 end def self.execute(*args) new(*args).execute end def runner @runner ||= Runner.new end def execute Nachos::CLI.start exit 0 end def Hub(args) Hub::Runner.new(*args.split(' ')) end end