Files
twenty/packages/twenty-server/src/database/commands/questions/confirmation.question.ts
T
2023-12-10 18:10:54 +01:00

17 lines
396 B
TypeScript

import { Question, QuestionSet } from 'nest-commander';
@QuestionSet({
name: 'confirm',
})
export class ConfirmationQuestion {
@Question({
type: 'confirm',
name: 'confirmation',
message:
"You are about to delete data from database. Are you sure to continue? Consider the '--dry-run' option first",
})
parseConfirm(val: string): boolean {
return Boolean(val);
}
}