Sha256: a561cf058b188fde3da652883e8b69f381353b7a6272c5653284922e78376e68
Contents?: true
Size: 723 Bytes
Versions: 212
Compression:
Stored size: 723 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/struct' module EacRubyUtils module Envs class Command module Concat def concat(operator, other_command) duplicate_by_extra_options(concat: ::EacRubyUtils::Struct.new( operator: operator, command: other_command )) end def or(other_command) concat('||', other_command) end def pipe(other_command) concat('|', other_command) end private def append_concat(command) extra_options[:concat].if_present(command) do |v| "#{command} #{v.operator} #{v.command.command}" end end end end end end
Version data entries
212 entries across 212 versions & 4 rubygems