Sha256: 18bc6b499a7b015f4580f18b635e80da6b9bef696282312a5c53f0249099f07c
Contents?: true
Size: 449 Bytes
Versions: 4
Compression:
Stored size: 449 Bytes
Contents
#!/usr/bin/env <%= RbConfig::CONFIG["ruby_install_name"] %> # frozen_string_literal: true lib_path = File.expand_path('../lib', __dir__) $:.unshift(lib_path) if !$:.include?(lib_path) require '<%= namespaced_path %>/cli' Signal.trap('INT') do warn("\n#{caller.join("\n")}: interrupted") exit(1) end begin <%= constantinized_name %>::CLI.start rescue <%= constantinized_name %>::CLI::Error => err puts "ERROR: #{err.message}" exit 1 end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tty-0.10.0 | lib/tty/templates/new/exe/newcli.tt |
tty-0.9.1 | lib/tty/templates/new/exe/newcli.tt |
tty-0.8.1 | lib/tty/templates/new/exe/newcli.tt |
tty-0.8.0 | lib/tty/templates/new/exe/newcli.tt |