Navigation Menu

Skip to content

Commit

Permalink
Accept --delete option by cs-configure-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 3, 2012
1 parent e93f6b5 commit 301c371
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions bin/cs-configure-fields
Expand Up @@ -46,9 +46,13 @@ if (!program.type) {
}

var field = domain.getIndexField(program.name);
field.type = program.type;

field.createSync();

console.log('Updated 1 Index Field:');
console.log(field.name + ' ' + field.state + ' ' + field.type + '()');
if (program.delete) {
field.deleteSync();
console.log('Updated 1 Index Field:');
} else {
field.type = program.type;
field.createSync();
console.log('Updated 1 Index Field:');
console.log(field.name + ' ' + field.state + ' ' + field.type + ' ()');
}

0 comments on commit 301c371

Please sign in to comment.