fix: add missing parameters ext method, fix SwitchDelete usage

This commit is contained in:
dusk 2025-09-24 21:36:33 +00:00
parent 10dd499835
commit 4e0c56f6cb
No known key found for this signature in database
4 changed files with 11 additions and 2 deletions

1
.gitignore vendored
View file

@ -9,6 +9,7 @@ target/
.idea/
.run/
.vscode/
.zed/
.mono/
tags/
.DS_Store

View file

@ -20,6 +20,14 @@ public static class ContextParametersExt
);
}
public static async Task<List<PKMember>> ParamResolveMembers(this Context ctx, string param_name)
{
return await ctx.Parameters.ResolveParameter(
ctx, param_name,
param => (param as Parameter.MemberRefs)?.members
);
}
public static async Task<PKSystem?> ParamResolveSystem(this Context ctx, string param_name)
{
return await ctx.Parameters.ResolveParameter(

View file

@ -30,7 +30,7 @@ public class SystemFront
{
if (ctx.MatchFlag("clear", "c") || ctx.PeekArgument() == "clear")
{
await new Switch().SwitchDelete(ctx);
await new Switch().SwitchDelete(ctx, true);
return;
}

View file

@ -199,7 +199,7 @@
depends_on.redis.condition = "process_healthy";
depends_on.pluralkit-gateway.condition = "process_log_ready";
# TODO: add liveness check
ready_log_line = "Received Ready";
ready_log_line = "Connected! All is good (probably).";
availability.restart = "on_failure";
availability.max_restarts = 3;
};