#!/usr/bin/env ruby

# This is needed for Rails initialization (see bin/rails, etc)
PROJECT_ROOT = File.expand_path('../..', __FILE__)
APP_PATH = File.join(PROJECT_ROOT, 'config/application')
require File.join(PROJECT_ROOT, 'config/boot')

# Set the environment name
ENV['RAILS_ENV'] ||= ENV['RACK_ENV'] || 'development'

# Process CLI options/commands and run the command
require_dependency File.join(PROJECT_ROOT, 'shared_togo/lib/shared_togo/cli')
cli = SharedTogo::CLI.new
cli.process_options
cli.run!
