kigster/secrets-cipher-base64

View on GitHub
exe/sym

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby
# vim: ft=ruby

require_relative '../lib/ruby_warnings'

lib_path = File.expand_path("#{File.dirname(__FILE__)}/../lib")
$LOAD_PATH << lib_path if File.exist?(lib_path) && !$LOAD_PATH.include?(lib_path)

require 'sym'
require 'sym/app'

# ARGV.any?{ |a| a =~ /^-/ } ?
begin
  exit ::Sym::App::CLI.new(ARGV.dup).execute
rescue Interrupt => e
  $stderr.flush
  warn "Interrupt, #{e.message}, exiting."
  $stderr.flush
  exit 1
end