Sha256: f4cd07924dc22aca4e903a2222952f4d507e8be698ca5db9340efd599b341a23

Contents?: true

Size: 776 Bytes

Versions: 3

Compression:

Stored size: 776 Bytes

Contents

# Copyright (c) 2023 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/config/diagnostics/effective_config_value'
require 'contrast/config/diagnostics/tools'
require 'contrast/utils/object_share'

module Contrast
  module Config
    module Diagnostics
      # Reads All ENV variables.
      module CommandLine
        class << self
          def command_line_settings
            cli = Contrast::Config::Diagnostics::Tools.flatten_settings(Contrast::CONFIG.sources.
              for(Contrast::Components::Config::Sources::COMMAND_LINE))

            Contrast::Config::Diagnostics::Tools.to_config_values(cli, source: true)
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
contrast-agent-7.3.0 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.2.0 lib/contrast/config/diagnostics/command_line.rb
contrast-agent-7.1.0 lib/contrast/config/diagnostics/command_line.rb