Migrate to a monorepo structure (#2909)
This commit is contained in:
@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user