module EacRubyUtils::Envs::Command::Concat

def append_concat(command)

def append_concat(command)
  extra_options[:concat].if_present(command) do |v|
    "#{command} #{v.operator} #{v.command.command}"
  end
end

def concat(operator, other_command)

def concat(operator, other_command)
  duplicate_by_extra_options(concat: ::EacRubyUtils::Struct.new(
    operator: operator, command: other_command
  ))
end

def or(other_command)

def or(other_command)
  concat('||', other_command)
end

def pipe(other_command)

def pipe(other_command)
  concat('|', other_command)
end