#!/usr/bin/env ruby $: << File.expand_path("../../lib/", __FILE__) require "thor" require "tmuxinator" if ARGV.length == 1 name = ARGV[0] if Tmuxinator::Cli.new.command_list.include?(name) Tmuxinator::Cli.start elsif Tmuxinator::Config.exists?(name) Tmuxinator::Cli.new.start(name) else Tmuxinator::Cli.start end else Tmuxinator::Cli.start end