Files
twenty/server/src/database/commands/questions/confirmation.question.ts
T
martmull 462c7ebdc1 0.2.0 cleaning script (#2379)
* Move question to questions folder

* Aggregate update result functions

* Use lodash to compare list of objects

* Remove favorites from tables

* Add a workspace parameter

* Move question after result log

* Improve logging

* Code review returns

* Add only lodash.isequal
2023-11-07 11:10:14 +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);
}
}