Sha256: d127fb22ba4d9c899f3bba6d17f06dd2338e86ae5736a3f5c94a7e9dec4df065
Contents?: true
Size: 755 Bytes
Versions: 17
Compression:
Stored size: 755 Bytes
Contents
# frozen_string_literal: true module EacCli module Runner module InstanceMethods def run_run parsed run_callbacks(:run) { run } rescue ::EacCli::Parser::Error => e $stderr.write("#{e}\n") rescue ::EacCli::Runner::Exit # rubocop:disable Lint/SuppressedException # Do nothing end def runner_context return @runner_context if @runner_context raise 'Context was required, but was not set yet' end def runner_context=(new_runner_context) @runner_context = new_runner_context @parsed = nil end def parsed @parsed ||= ::EacCli::Parser.new(self.class.runner_definition, runner_context.argv).parsed end end end end
Version data entries
17 entries across 17 versions & 3 rubygems