Sha256: 4e0d03e6cb88d07ec33f370620b43d196f32884348f1c183096c7a33a1e14d80

Contents?: true

Size: 660 Bytes

Versions: 13

Compression:

Stored size: 660 Bytes

Contents

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

require 'thor'
require "#{ROOT_DIR}/lib/framework/logging/multilogger.rb"
require "#{ROOT_DIR}/lib/framework/logging/logger.rb"
Facter::Log.add_legacy_logger(STDERR)
require "#{ROOT_DIR}/lib/facter"
require "#{ROOT_DIR}/lib/framework/cli/cli"

Facter::OptionsValidator.validate(ARGV)
ARGV.unshift(Facter::Cli.default_task) unless
  Facter::Cli.all_tasks.key?(ARGV[0]) ||
  Facter::Cli.instance_variable_get(:@map).key?(ARGV[0])

begin
  Facter::Cli.start(ARGV, debug: true)
rescue Thor::UnknownArgumentError => e
  Facter::OptionsValidator.write_error_and_exit("unrecognised option '#{e.unknown.first}'")
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
facter-4.0.21 lib/framework/cli/cli_launcher.rb
facter-4.0.20 lib/framework/cli/cli_launcher.rb
facter-4.0.19 lib/framework/cli/cli_launcher.rb
facter-4.0.18 lib/framework/cli/cli_launcher.rb
facter-4.0.17 lib/framework/cli/cli_launcher.rb
facter-4.0.16 lib/framework/cli/cli_launcher.rb
facter-4.0.15 lib/framework/cli/cli_launcher.rb
facter-4.0.14 lib/framework/cli/cli_launcher.rb
facter-4.0.13 lib/framework/cli/cli_launcher.rb
facter-4.0.12 lib/framework/cli/cli_launcher.rb
facter-4.0.11 lib/framework/cli/cli_launcher.rb
facter-4.0.10.pre lib/framework/cli/cli_launcher.rb
facter-4.0.9.pre lib/framework/cli/cli_launcher.rb