Sha256: d3dfd8ac9d3d2ca20834498adc2a88bc4994a788db793d6dd0f212da3a4781f5

Contents?: true

Size: 410 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
iev-0.3.5 lib/iev/cli.rb