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. /// List of option flags like "--api", "--lowvram", etc.
/// </summary> /// </summary>
public List<string> Options { get; set; } 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", Name = "Xformers",
Options = new() {"--xformers"} Options = new() {"--xformers"}
}, },
new() LaunchOptionDefinition.Extras
{
Name = "Extra Launch Arguments",
Type = LaunchOptionType.String,
Options = new() {""}
}
}; };
public override async Task<string> GetLatestVersion() public override async Task<string> GetLatestVersion()

7
StabilityMatrix/Models/Packages/DankDiffusion.cs

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

7
StabilityMatrix/Models/Packages/VladAutomatic.cs

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

Loading…
Cancel
Save