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