mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-03 23:23:21 +00:00
fix(cli): handle negated schedule limit flags (#5973)
This commit is contained in:
@@ -23,10 +23,8 @@ export interface ScheduleUpdateOptions extends ScheduleCommandOptions {
|
||||
model?: string;
|
||||
mode?: string;
|
||||
cwd?: string;
|
||||
maxRuns?: string;
|
||||
noMaxRuns?: boolean;
|
||||
expiresIn?: string;
|
||||
noExpiresIn?: boolean;
|
||||
maxRuns?: string | false;
|
||||
expiresIn?: string | false;
|
||||
}
|
||||
|
||||
export async function runUpdateCommand(
|
||||
@@ -45,10 +43,10 @@ export async function runUpdateCommand(
|
||||
model: options.model,
|
||||
mode: options.mode,
|
||||
cwd: options.cwd,
|
||||
maxRuns: options.maxRuns,
|
||||
expiresIn: options.expiresIn,
|
||||
clearMaxRuns: options.noMaxRuns,
|
||||
clearExpires: options.noExpiresIn,
|
||||
maxRuns: options.maxRuns === false ? undefined : options.maxRuns,
|
||||
expiresIn: options.expiresIn === false ? undefined : options.expiresIn,
|
||||
clearMaxRuns: options.maxRuns === false,
|
||||
clearExpires: options.expiresIn === false,
|
||||
});
|
||||
const { client } = await connectScheduleClient(options.daemonTarget);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user