@catladder/cli
Version:
Panter cli tool for cloud CI/CD and DevOps
20 lines (18 loc) • 510 B
text/typescript
import { defineCommand } from "../../core/defineCommand";
import { clearBackups } from "../../utils/gitlab";
export const commandSecretsClearBackups = defineCommand({
name: "project secrets-clear-backups",
description: "clears all backups",
group: "project",
inputs: {
keep: {
type: "number",
message: "How many backups should we keep? 🤔",
default: 1,
},
},
execute: async (ctx) => {
const keep = await ctx.get("keep");
await clearBackups(ctx, keep);
},
});