public static NpmRunSettings RemoveArguments(this NpmRunSettings toolSettings, IEnumerable <string> arguments) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet <string>(arguments); toolSettings.ArgumentsInternal.RemoveAll(x => hashSet.Contains(x)); return(toolSettings); }
public static NpmRunSettings AddArguments(this NpmRunSettings toolSettings, IEnumerable <string> arguments) { toolSettings = toolSettings.NewInstance(); toolSettings.ArgumentsInternal.AddRange(arguments); return(toolSettings); }
public static NpmRunSettings ClearArguments(this NpmRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ArgumentsInternal.Clear(); return(toolSettings); }
public static NpmRunSettings AddArguments(this NpmRunSettings toolSettings, params string[] arguments) { toolSettings = toolSettings.NewInstance(); toolSettings.ArgumentsInternal.AddRange(arguments); return(toolSettings); }
public static NpmRunSettings SetArguments(this NpmRunSettings toolSettings, IEnumerable <string> arguments) { toolSettings = toolSettings.NewInstance(); toolSettings.ArgumentsInternal = arguments.ToList(); return(toolSettings); }
public static NpmRunSettings SetArguments(this NpmRunSettings toolSettings, params string[] arguments) { toolSettings = toolSettings.NewInstance(); toolSettings.ArgumentsInternal = arguments.ToList(); return(toolSettings); }
public static NpmRunSettings ResetCommand(this NpmRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Command = null; return(toolSettings); }
public static NpmRunSettings SetCommand(this NpmRunSettings toolSettings, string command) { toolSettings = toolSettings.NewInstance(); toolSettings.Command = command; return(toolSettings); }