Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static NpmRunSettings AddArguments(this NpmRunSettings toolSettings, IEnumerable <string> arguments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ArgumentsInternal.AddRange(arguments);
     return(toolSettings);
 }
Beispiel #3
0
 public static NpmRunSettings ClearArguments(this NpmRunSettings toolSettings)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ArgumentsInternal.Clear();
     return(toolSettings);
 }
Beispiel #4
0
 public static NpmRunSettings AddArguments(this NpmRunSettings toolSettings, params string[] arguments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ArgumentsInternal.AddRange(arguments);
     return(toolSettings);
 }
Beispiel #5
0
 public static NpmRunSettings SetArguments(this NpmRunSettings toolSettings, IEnumerable <string> arguments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ArgumentsInternal = arguments.ToList();
     return(toolSettings);
 }
Beispiel #6
0
 public static NpmRunSettings SetArguments(this NpmRunSettings toolSettings, params string[] arguments)
 {
     toolSettings = toolSettings.NewInstance();
     toolSettings.ArgumentsInternal = arguments.ToList();
     return(toolSettings);
 }
Beispiel #7
0
 public static NpmRunSettings ResetCommand(this NpmRunSettings toolSettings)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Command = null;
     return(toolSettings);
 }
Beispiel #8
0
 public static NpmRunSettings SetCommand(this NpmRunSettings toolSettings, string command)
 {
     toolSettings         = toolSettings.NewInstance();
     toolSettings.Command = command;
     return(toolSettings);
 }