class EacRubyUtils::Envs::BaseCommand::AppendCommandOptions

def input

Returns:
  • (EacRubyUtils::Envs::Command, nil) -
def input
  options[:input]
end

def input_file

Returns:
  • (Pathname, nil) -
def input_file
  options[:input_file].if_present(&:to_pathname)
end

def output_file

Returns:
  • (Pathname, nil) -
def output_file
  options[:output_file].if_present(&:to_pathname)
end

def result

def result
  r = command_line
  r = "#{input.command} | #{r}" if input
  r = "cat #{Shellwords.escape(input_file)} | #{r}" if input_file
  r += " > #{Shellwords.escape(output_file)}" if output_file
  r
end