Sha256: 564963af6278caeb09a533a77404b4047ef1081cfae1f4bfa7de608b2aff774b
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true module Mercurial class Shell # windows command line doesn't like single quotes def self.interpolate_arguments(cmd_with_args) cmd_with_args.shift.tap do |cmd| cmd.gsub!('?') do if Lolcommits::Platform.platform_windows? "\"#{cmd_with_args.shift}\"" else cmd_with_args.shift.to_s.enclose_in_single_quotes end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems