Sha256: d6998defad3a434032bf883b7107cb51bb7df1cbf0bacce88eca30eb3ee57d69

Contents?: true

Size: 410 Bytes

Versions: 2

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

# (c) Copyright 2020 Ribose Inc.
#

module IEV
  module CLI
    def self.start(arguments)
      Signal.trap("INT") do
        UI.info "Signal SIGINT received, quitting!"
        Kernel.exit(1)
      end

      Signal.trap("TERM") do
        UI.info "Signal SIGTERM received, quitting!"
        Kernel.exit(1)
      end

      IEV::CLI::Command.start(arguments)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iev-0.3.4 lib/iev/cli.rb
iev-0.3.3 lib/iev/cli.rb