null+****@clear*****
null+****@clear*****
2012年 8月 6日 (月) 17:40:02 JST
SHIMODA Hiroshi 2012-08-06 17:40:02 +0900 (Mon, 06 Aug 2012) New Revision: c6b117d65e3c2f361e73a0bf6b84b8883bd67b16 https://github.com/groonga/gcs/commit/c6b117d65e3c2f361e73a0bf6b84b8883bd67b16 Log: Fix missing variable "program" Modified files: bin/cs-delete-domain lib/command-line.js Modified: bin/cs-delete-domain (+1 -1) =================================================================== --- bin/cs-delete-domain 2012-08-06 17:29:17 +0900 (6491512) +++ bin/cs-delete-domain 2012-08-06 17:40:02 +0900 (d587649) @@ -19,7 +19,7 @@ if (commandLine.options.force) { commandLine.domain.deleteSync(); console.log('Domain [' + commandLine.domain.name + '] has been deleted successfully.'); } else { - program.confirm('Really delete? [' + commandLine.domain.name + '] (y/N)', function(ok){ + commandLine.confirm('Really delete? [' + commandLine.domain.name + '] (y/N)', function(ok){ if (ok) { commandLine.domain.deleteSync(); console.log('Successfully deleted.'); Modified: lib/command-line.js (+7 -0) =================================================================== --- lib/command-line.js 2012-08-06 17:29:17 +0900 (615c8e8) +++ lib/command-line.js 2012-08-06 17:40:02 +0900 (dc6bd48) @@ -62,6 +62,13 @@ CommandLineInterface.prototype = { return this; }, + prompt: function() { + return this.prompt.confirm.apply(this.program, arguments); + }, + confirm: function() { + return this.program.confirm.apply(this.program, arguments); + }, + assertHaveDomainName: function() { if (!this.options.domainName) { console.log('You must specify the domain name.'); -------------- next part -------------- HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...Download