Sha256: 0f99adae64a247747c0c8ed52b8330c657a27d151e754fe9c004374967fa42fb

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

#!/usr/bin/env ruby

Signal.trap("INT") { exit 1 }

lib_dir = File.expand_path("../../lib", __FILE__)
$LOAD_PATH.unshift lib_dir if File.directory?(lib_dir)

require "github_cli"
begin
  GithubCLI::CLI.start
rescue Interrupt => e
  GithubCLI.ui.error "\nQuitting..."
  GithubCLI.ui.debug e.backtrace.join("\n")
  exit 1
rescue SystemExit => e
  exit e.status
rescue Exception => e
  GithubCLI.ui.error "Fatal error has occurred. " + e.message.to_s
  GithubCLI.ui.debug e.backtrace.join("\n")
  exit 1
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
github_cli-0.6.1 bin/gcli
github_cli-0.6.0 bin/gcli
github_cli-0.5.9 bin/gcli
github_cli-0.5.8 bin/gcli
github_cli-0.5.7 bin/gcli
github_cli-0.5.6 bin/gcli
github_cli-0.5.5 bin/gcli