Browse Source

Extract common extra args definition to `Extras`

pull/5/head
Ionite 1 year ago
parent
commit
e23ee0314c
No known key found for this signature in database
  1. 7
      StabilityMatrix/Models/LaunchOptionDefinition.cs
  2. 7
      StabilityMatrix/Models/Packages/A3WebUI.cs
  3. 7
      StabilityMatrix/Models/Packages/DankDiffusion.cs
  4. 7
      StabilityMatrix/Models/Packages/VladAutomatic.cs

7
StabilityMatrix/Models/LaunchOptionDefinition.cs

@ -31,4 +31,11 @@ public class LaunchOptionDefinition
/// List of option flags like "--api", "--lowvram", etc.
/// </summary>
public List<string> Options { get; set; }
public static LaunchOptionDefinition Extras => new()
{
Name = "Extra Launch Arguments",
Type = LaunchOptionType.String,
Options = new() {""}
};
}

7
StabilityMatrix/Models/Packages/A3WebUI.cs

@ -54,12 +54,7 @@ public class A3WebUI : BaseGitPackage
Name = "Xformers",
Options = new() {"--xformers"}
},
new()
{
Name = "Extra Launch Arguments",
Type = LaunchOptionType.String,
Options = new() {""}
}
LaunchOptionDefinition.Extras
};
public override async Task<string> GetLatestVersion()

7
StabilityMatrix/Models/Packages/DankDiffusion.cs

@ -34,12 +34,7 @@ public class DankDiffusion : BasePackage
Name = "Xformers",
Options = new List<string> { "--xformers" }
},
new()
{
Name = "Extra Launch Arguments",
Type = LaunchOptionType.String,
Options = new() {""}
}
LaunchOptionDefinition.Extras
};
public override Task<string> GetLatestVersion()

7
StabilityMatrix/Models/Packages/VladAutomatic.cs

@ -38,12 +38,7 @@ public class VladAutomatic : BaseGitPackage
Name = "Xformers",
Options = new() { "--xformers" }
},
new()
{
Name = "Extra Launch Arguments",
Type = LaunchOptionType.String,
Options = new() {""}
}
LaunchOptionDefinition.Extras
};
public override string ExtraLaunchArguments => "--skip-git";

Loading…
Cancel
Save