Skip to content
This repository
Browse code

lot's of help messages stuff

  • Loading branch information...
commit 8f177dca95860f2ccfd7b9b3e60591b82249f33d 1 parent 8b3bccb
Stefan Judis authored March 22, 2013

Showing 1 changed file with 21 additions and 5 deletions. Show diff stats Hide diff stats

  1. 26  lib/help/messages.js
26  lib/help/messages.js
@@ -67,7 +67,15 @@ var messages = module.exports = {
67 67
                         'Set value for specific config option.\n' +
68 68
                         '    $ config [section] [option] [value]',
69 69
 
70  
-  'content':            '',
  70
+  'content':            'Get or set content of given document.\n\n' +
  71
+                        'COMMAND SUPPORTS AUTO-COMPLETION.\n\n' +
  72
+                        'Commands:\n' +
  73
+                        'Get complete document body.\n' +
  74
+                        '    $ content\n\n' +
  75
+                        'Get content of particular document body key.\n' +
  76
+                        '    $ content [key]\n\n' +
  77
+                        'Set content of particular document body key.\n' +
  78
+                        '    $ content [key] [content]',
71 79
 
72 80
   'create':             'Create new database (if not exist) and set it in CouchDB.\n\n' +
73 81
                         'Command:\n' +
@@ -144,7 +152,7 @@ var messages = module.exports = {
144 152
 
145 153
   'exit':               'Stop cushion and do something else.',
146 154
 
147  
-  'info':               'Get info about given database.\n\n' +
  155
+  'info':               'Get info about given database or document.\n\n' +
148 156
                         'Command:\n' +
149 157
                         '    $ info',
150 158
 
@@ -160,6 +168,10 @@ var messages = module.exports = {
160 168
                         'Command:\n' +
161 169
                         '    $ listUsers',
162 170
 
  171
+  'load':               'Load body of given document.\n\n' +
  172
+                        'Command:\n' +
  173
+                        '    $ info',
  174
+
163 175
   'log':                'Get logs of couchdb.\n\n' +
164 176
                         'Commands:\n' +
165 177
                         'Get log with default length of 1000 Bytes.\n' +
@@ -185,6 +197,10 @@ var messages = module.exports = {
185 197
                         'Command:\n' +
186 198
                         '    $ restart',
187 199
 
  200
+  'save':               'Save your changes of document content to CouchDB.\n\n' +
  201
+                        'Command:\n' +
  202
+                        '    $ save',
  203
+
188 204
   'stats':              'Get server statistics.\n\n' +
189 205
                         'Command:\n' +
190 206
                         '    $ stats',
@@ -201,9 +217,9 @@ var messages = module.exports = {
201 217
                         '    -> tmpView \'function(doc) {emit(doc._id, doc);}\' limit=1 skip=2 \'function(keys, values, rereduce){return sum(); }\'',
202 218
 
203 219
   'user':               'Switch to a given user level.\n' +
204  
-                        'You can switch to an existing user or' +
205  
-                        'into the level of a new user by setting his/her' +
206  
-                        'name and create it afterwards. Try "help create" ' +
  220
+                        'You can switch to an existing user or\n' +
  221
+                        'into the level of a new user by setting his/her\n' +
  222
+                        'name and create it afterwards. Try "help create\n" ' +
207 223
                         'at user level if you need more information.\n\n' +
208 224
                         'COMMAND SUPPORTS AUTO-COMPLETION.\n\n' +
209 225
                         'Command:\n' +

0 notes on commit 8f177dc

Please sign in to comment.
Something went wrong with that request. Please try again.