adding gem file executable
This commit is contained in:
14
exe/aoc
Executable file
14
exe/aoc
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env ruby
|
||||
# frozen_string_literal: true
|
||||
|
||||
lib_path = File.expand_path('../lib', __dir__)
|
||||
$:.unshift(lib_path) if !$:.include?(lib_path)
|
||||
|
||||
require("aoc")
|
||||
|
||||
begin
|
||||
AOC.run
|
||||
rescue StandardError => err
|
||||
puts "ERROR: #{err.message}"
|
||||
exit 1 #err.status
|
||||
end
|
||||
Reference in New Issue
Block a user