Falkor/falkorlib

View on GitHub
bin/falkor

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby -U
# -*- encoding: utf-8 -*-
################################################################################
# Time-stamp: <Fri 2016-10-14 21:37 svarrette>
#
# Copyright (c) 2015-2016 Sebastien Varrette <Sebastien.Varrette@uni.lu>
#
################################################################################
# Resources:
#
# * [cleanthor](https://github.com/lastobelus/cleanthor)
# * http://chrisparai.so/creating-a-thor-gem/
# * http://willschenk.com/making-a-command-line-utility-with-gems-and-thor/

# Exit cleanly from an early interrupt
Signal.trap("INT") { exit 1 }

require "thor/error"
require 'falkorlib'

# Stdout/stderr should not buffer output
$stdout.sync = true
$stderr.sync = true


begin
  FalkorLib::CLI::App.start(ARGV, :debug => true)
rescue Thor::InvocationError => e
  error e.message.gsub(/^ERROR:/, '')
end