Permalink
Browse files

Formatting changes for help

  • Loading branch information...
1 parent 91ac9da commit e64819092c7460f12f05387c87107720ad6b8bca @sreeix committed Mar 30, 2011
@@ -13,9 +13,11 @@ def run(host = 'localhost', port = 5984, user = nil, pass = nil)
end
end
def self.describe
- {:description => "Connects to the couch server. Takes host and port defaults to 5984",
- :usage => 'connect [database], [port]',
- :examples => ["connect", "connect bigcouch.test.com", "connect 'bigcouch.test.com', 5986"]}
+ {
+ :description => "Connects to the couch server. Takes host and port defaults to 5984",
+ :usage => 'connect [database], [port]',
+ :examples => ["connect", "connect bigcouch.test.com", "connect 'bigcouch.test.com', 5986"]
+ }
end
end
end
@@ -45,9 +45,11 @@ def create_view(name, *params)
end
def self.describe
- {:description => "Creates a new database and switches to the database",
- :usage => " create :database | :view , name",
- :examples => ["create :database, riders", "create :view, 'Riders/test'"]}
+ {
+ :description => "Creates a new database and switches to the database",
+ :usage => " create :database | :view , name",
+ :examples => ["create :database, riders", "create :view, 'Riders/test'"]
+ }
end
end
end
@@ -10,9 +10,11 @@ def run(id = nil)
end
def self.describe
- {:description => "Retrives documents from the current database",
- :usage => "get [:doc], [<id>]",
- :examples => ["get :doc, '2a663b5936f98fe225d64fcaa89e3281'", "get"]}
+ {
+ :description => "Retrives documents from the current database",
+ :usage => "get [:doc], [<id>]",
+ :examples => ["get :doc, '2a663b5936f98fe225d64fcaa89e3281'", "get"]
+ }
end
end
@@ -21,9 +21,11 @@ def show_all
end
def self.describe
- { :description => "Help on the system",
- :usage => "help [<command>]",
- :examples => ["help", "help :get"]}
+ {
+ :description => "Help on the system",
+ :usage => "help [<command>]",
+ :examples => ["help", "help :get"]
+ }
end
end
@@ -11,10 +11,11 @@ def run(*params)
end
def self.describe(p = nil)
- {:description => "Runs a view with just the map function and returns the results",
- :usage => 'map <view_name> [options]',
- :examples => ["map 'Rider/top_ten'","map 'Rider/top_ten', 10", "map 'Rider/top_ten', {:startkey => '10', :endkey => '20'}","map 'Rider/top_ten', [1,2,3,10]" ]
- }
+ {
+ :description => "Runs a view with just the map function and returns the results",
+ :usage => 'map <view_name> [options]',
+ :examples => ["map 'Rider/top_ten'","map 'Rider/top_ten', 10", "map 'Rider/top_ten', {:startkey => '10', :endkey => '20'}","map 'Rider/top_ten', [1,2,3,10]" ]
+ }
end
end
end
@@ -10,10 +10,11 @@ def run(*params)
end
def self.describe
- {:description => "Renames database or a view both on the same Couch instance. Replicates to new db and deletes the old. Hence slow.",
- :usage => "rename <src_database>, <target_database>",
- :examples => ["rename 'riders_test', 'riders_development'"]
- }
+ {
+ :description => "Renames database or a view both on the same Couch instance. Replicates to new db and deletes the old. Hence slow.",
+ :usage => "rename <src_database>, <target_database>",
+ :examples => ["rename 'riders_test', 'riders_development'"]
+ }
end
end
end
@@ -11,9 +11,10 @@ def run(*params)
end
def self.describe
- { :description => "Allows replication to different databases",
- :examples => ["replicate_to :riders_dev", "replicate_to 'http://foo.bar.com:5984/billing', :continous"],
- :usage => "replicate_to <target_db>, options"
+ {
+ :description => "Allows replication to different databases",
+ :examples => ["replicate_to :riders_dev", "replicate_to 'http://foo.bar.com:5984/billing', :continous"],
+ :usage => "replicate_to <target_db>, options"
}
end
@@ -6,10 +6,11 @@ def run(*params)
end
def self.describe
- {:description => "Restarts the couchdb server. Please be careful with it. It will not prompt you for anything.",
- :examples => ["restart"],
- :usage => 'restart'
- }
+ {
+ :description => "Restarts the couchdb server. Please be careful with it. It will not prompt you for anything.",
+ :examples => ["restart"],
+ :usage => 'restart'
+ }
end
end
end
@@ -14,10 +14,11 @@ def run(database)
end
def self.describe
- { :description => "Use provided database",
+ {
+ :description => "Use provided database",
:detail => "use <database>",
:examples => ["use 'riders'"]
- }
+ }
end
end
end

0 comments on commit e648190

Please sign in to comment.