[Groonga-commit] groonga/gcs [master] Output notice for gcs-describe-domain

Back to archive index

SHIMODA Hiroshi null+****@clear*****
Wed Aug 15 17:20:08 JST 2012


SHIMODA Hiroshi	2012-08-15 17:20:08 +0900 (Wed, 15 Aug 2012)

  New Revision: 4ba325ed5fa11f21c80e57a9537b2c23480f2150
  https://github.com/groonga/gcs/commit/4ba325ed5fa11f21c80e57a9537b2c23480f2150

  Log:
    Output notice for gcs-describe-domain

  Modified files:
    bin/gcs-describe-domain

  Modified: bin/gcs-describe-domain (+11 -0)
===================================================================
--- bin/gcs-describe-domain    2012-08-15 17:09:13 +0900 (7f91102)
+++ bin/gcs-describe-domain    2012-08-15 17:20:08 +0900 (b63ef20)
@@ -47,12 +47,23 @@ function report(domain) {
   console.log('======================');
 }
 
+function outputNotesForHostAndPort() {
+  console.log('*Note: the hostname and the port number is detected from ' +
+              'the default options. If you run the service with your ' +
+              'favorite host name and port number, then use it instead of ' +
+              'default information.');
+}
+
 if (commandLine.options.domainName) {
+  commandLine.assertDomainExists();
   report(commandLine.domain);
+  outputNotesForHostAndPort();
 } else {
   var domains = CLI.Domain.getAll(commandLine.context);
   domains.forEach(function(domain, index) {
     if (index) console.log('');
     report(domain);
   });
+  if (domains.length)
+    outputNotesForHostAndPort();
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index