kook/bin/kook
2015-07-15 16:18:44 +02:00

24 lines
464 B
Ruby
Executable file

#!/usr/bin/env ruby
# vim: set syntax=ruby:
require 'yaml'
require 'singleton'
require 'pathname'
require 'colorize'
DATA_DIR = (Pathname.new(__FILE__).dirname + '..').realpath.to_s
require 'thor'
require 'kook'
begin
Kook::CLI::Main.start(ARGV)
rescue Exception => exception
# In case of unhandled exception.
# FIXME: Manage display & create log file
STDERR.puts "ERROR(#{exception.class}) : #{exception}"
STDERR.puts exception.backtrace
exit 1
end