UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

24 lines (23 loc) 658 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.commandSecretsClearBackups = void 0; const defineCommand_1 = require("../../core/defineCommand"); const gitlab_1 = require("../../utils/gitlab"); exports.commandSecretsClearBackups = (0, defineCommand_1.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 (0, gitlab_1.clearBackups)(ctx, keep); } });