You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2025. It is now read-only.
varmessage=chalk.red("Please Enter your Stack name, From which you want to delete ?")
28
+
varmessage=chalk.red("To confirm the delete action, enter your stack name ?")
29
29
30
30
prompt.get([message],function(err,result){
31
31
if(result[message]===config.stack.name){
32
-
constconfirm=newConfirm('The utility will delete all the Content Types and Assets present in the stack that you provide here.Are you sure, you want to continue')
33
-
confirm
34
-
.run()
35
-
.then(function(answer){
36
-
// eslint-disable-next-line no-empty
37
-
if(answer===true){
38
32
// eslint-disable-next-line no-undef
39
33
if(process.argv.length===3){
40
34
// eslint-disable-next-line no-undef
@@ -45,7 +39,7 @@ login(config).then(function() {
45
39
log.success('Deletion completed successfully!');
46
40
return;
47
41
}).catch(function(error){
48
-
log.error('Failed to Delete '+val+error);
42
+
log.error('Failed to Delete '+" "+JSON.stringify(error));
constconfirm=newConfirm('Are you sure, you want to delete All Assets')
33
+
constconfirm=newConfirm(chalk.red('The action will delete all the Assets present in the mentioned stack. Are you sure you want to continue ?'))
34
34
confirm
35
35
.run()
36
36
.then(function(answer){
@@ -43,7 +43,7 @@ DeleteAseets.prototype = {
43
43
})
44
44
}else{
45
45
// eslint-disable-next-line no-console
46
-
console.log("deleteAssets is not set as true in config file or you have selected No")
46
+
console.log(chalk.red("Delete action failed. Either 'assetsdelete' is not set as 'true' in the config file or you declined while confirming the delete action."))
constconfirm=newConfirm('Are you sure, you want to delete'+" "+"'"+contenttypeslist+"'"+" "+'contentTypes')
35
+
constconfirm=newConfirm(chalk.red('The action will delete the following Content Types.'+"'"+contenttypeslist+"'"+'.Are you sure you want to continue:?'))
0 commit comments