Sha256: 16668a628e74e93abb05a812cd4b503724be8df3e5d1ffa604d642eede5415fd

Contents?: true

Size: 356 Bytes

Versions: 4

Compression:

Stored size: 356 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

lib_path = File.expand_path('../lib', __dir__)
$:.unshift(lib_path) if !$:.include?(lib_path)
require 'tty/cli'

Signal.trap('INT') do
  warn("\n#{caller.join("\n")}: interrupted")
  exit(1)
end

begin
  TTY::CLI.start
rescue TTY::CLI::Error => err
  puts "ERROR: #{err.message}"
  exit 1 #err.status
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tty-0.10.0 exe/teletype
tty-0.9.1 exe/teletype
tty-0.8.1 exe/teletype
tty-0.8.0 exe/teletype