Permalink
Browse files

lot's of help messages stuff

  • Loading branch information...
stefanjudis committed Mar 22, 2013
1 parent 8b3bccb commit 8f177dca95860f2ccfd7b9b3e60591b82249f33d
Showing with 21 additions and 5 deletions.
  1. +21 −5 lib/help/messages.js
View
@@ -67,7 +67,15 @@ var messages = module.exports = {
'Set value for specific config option.\n' +
' $ config [section] [option] [value]',
- 'content': '',
+ 'content': 'Get or set content of given document.\n\n' +
+ 'COMMAND SUPPORTS AUTO-COMPLETION.\n\n' +
+ 'Commands:\n' +
+ 'Get complete document body.\n' +
+ ' $ content\n\n' +
+ 'Get content of particular document body key.\n' +
+ ' $ content [key]\n\n' +
+ 'Set content of particular document body key.\n' +
+ ' $ content [key] [content]',
'create': 'Create new database (if not exist) and set it in CouchDB.\n\n' +
'Command:\n' +
@@ -144,7 +152,7 @@ var messages = module.exports = {
'exit': 'Stop cushion and do something else.',
- 'info': 'Get info about given database.\n\n' +
+ 'info': 'Get info about given database or document.\n\n' +
'Command:\n' +
' $ info',
@@ -160,6 +168,10 @@ var messages = module.exports = {
'Command:\n' +
' $ listUsers',
+ 'load': 'Load body of given document.\n\n' +
+ 'Command:\n' +
+ ' $ info',
+
'log': 'Get logs of couchdb.\n\n' +
'Commands:\n' +
'Get log with default length of 1000 Bytes.\n' +
@@ -185,6 +197,10 @@ var messages = module.exports = {
'Command:\n' +
' $ restart',
+ 'save': 'Save your changes of document content to CouchDB.\n\n' +
+ 'Command:\n' +
+ ' $ save',
+
'stats': 'Get server statistics.\n\n' +
'Command:\n' +
' $ stats',
@@ -201,9 +217,9 @@ var messages = module.exports = {
' -> tmpView \'function(doc) {emit(doc._id, doc);}\' limit=1 skip=2 \'function(keys, values, rereduce){return sum(); }\'',
'user': 'Switch to a given user level.\n' +
- 'You can switch to an existing user or' +
- 'into the level of a new user by setting his/her' +
- 'name and create it afterwards. Try "help create" ' +
+ 'You can switch to an existing user or\n' +
+ 'into the level of a new user by setting his/her\n' +
+ 'name and create it afterwards. Try "help create\n" ' +
'at user level if you need more information.\n\n' +
'COMMAND SUPPORTS AUTO-COMPLETION.\n\n' +
'Command:\n' +

0 comments on commit 8f177dc

Please sign in to comment.