Skip to content

Commit

Permalink
fix(cli): force prune action
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Jan 31, 2024
1 parent 45d6f30 commit b2707da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/cli/src/utils/datatruck/cron-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export type CronAction = {
}
| {
name: "prune";
options: PruneCommandOptions;
options: Omit<PruneCommandOptions, "confirm">;
}
);

Expand Down Expand Up @@ -83,7 +83,9 @@ export function createCronServer(
);
const cliOptions = stringifyOptions(
command.optionsConfig() as any,
action.options,
action.name === "prune"
? ({ ...action.options, confirm: true } satisfies PruneCommandOptions)
: action.options,
);
const [node, bin] = process.argv;
await AsyncProcess.exec(
Expand Down

0 comments on commit b2707da

Please sign in to comment.