/// <summary> /// This method produces a collection of options and arguments to pass on the command line /// to specify the merge tool. /// </summary> /// <param name="tool"> /// The merge tool to generate options and arguments for. /// </param> /// <returns> /// A collection of options and arguments to pass on the command line. /// </returns> public virtual IEnumerable <string> MergeToolOption(string tool) { if (StringEx.IsNullOrWhiteSpace(tool)) { yield break; } yield return("--tool"); yield return(StringEx.EncapsulateInQuotesIfWhitespace(tool)); }
/// <summary> /// This method produces a collection of options and arguments to pass on the command line /// to specify the merge tool. /// </summary> /// <param name="tool"> /// The merge tool to generate options and arguments for. /// </param> /// <returns> /// A collection of options and arguments to pass on the command line. /// </returns> public override IEnumerable <string> MergeToolOption(string tool) { if (StringEx.IsNullOrWhiteSpace(tool)) { yield break; } yield return("--config"); yield return(string.Format(CultureInfo.InvariantCulture, "ui.merge={0}", StringEx.EncapsulateInQuotesIfWhitespace(tool))); }