caskdata/cdap — pull request #738 by awholegunch (2014-12-02 07:36:36+00:00)
Title: Fixed the generation of the CLI docs

... and to put quotes and double up any internal quotes.

Output:
```
``call procedure []``,"Calls a Procedure"
``call service [headers ] [body

]``,"Calls a Service endpoint. The header is formatted as ""{'key':'value', ...}"" and the body is a String."
``connect ``,"Connects to a CDAP instance. parameter(s) could be used if authentication is enabled in the gateway server."
``create dataset instance ``,"Creates a Dataset"
``create stream ``,"Creates a Stream"
``delete app ``,"Deletes an application"
``delete dataset instance ``,"Deletes a Dataset"
``delete dataset module ``,"Deletes a Dataset module"
``deploy app ``,"Deploys an application"
``deploy dataset module ``,"Deploys a Dataset module"
``describe app ``,"Shows detailed information about an application"
``describe dataset module ``,"Shows information about a Dataset module"
``describe dataset type ``,"Shows information about a Dataset type"
``describe stream ``,"Shows detailed information about a Stream"
``execute ``,"Executes a Dataset query"
``exit``,"Exits the CLI"
``get endpoints service ``,"List the endpoints that a Service exposes"
``get flow live ``,"Gets the live info of a Flow"
``get flow logs [] []``,"Gets the logs of a Flow"
``get flow runs [] [] [] []``,"Gets the run history of a Flow"
``get flow status ``,"Gets the status of a Flow"
``get flowlet instances ``,"Gets the instances of a Flowlet"
``get mapreduce logs [] []``,"Gets the logs of a MapReduce job"
``get mapreduce runs [] [] [] []``,"Gets the run history of a MapReduce job"
``get mapreduce status ``,"Gets the status of a MapReduce job"
``get procedure instances ``,"Gets the instances of a Procedure"
``get procedure live ``,"Gets the live info of a Procedure"
``get procedure logs [] []``,"Gets the logs of a Procedure"
``get procedure runs [] [] [] []``,"Gets the run history of a Procedure"
``get procedure status ``,"Gets the status of a Procedure"
``get runnable instances ``,"Gets the instances of a Runnable"
``get runnable logs [] []``,"Gets the logs of a Runnable"
``get runnable runs [] [] [] []``,"Gets the run history of a Runnable"
``get service status ``,"Gets the status of a Service"
``get spark logs [] []``,"Gets the logs of a Spark job"
``get spark runs [] [] [] []``,"Gets the run history of a Spark job"
``get spark status ``,"Gets the status of a Spark job"
``get stream [] [] []``,"Gets events from a Stream. The time format for and can be a timestamp in milliseconds or a relative time in the form of [+\-][0-9]+[hms]. For , it is relative to current time; for , it is relative to start time. Special constants ""min"" and ""max"" can also be used to represent ""0"" and ""max timestamp"" respectively."
``get workflow runs [] [] [] []``,"Gets the run history of a Workflow"
``get workflow status ``,"Gets the status of a Workflow"
``help``,"Prints this helper text"
``list apps``,"Lists all applications"
``list dataset instances``,"Lists all Datasets"
``list dataset modules``,"Lists Dataset modules"
``list dataset types``,"Lists Dataset types"
``list flows``,"Lists Flows"
``list mapreduce``,"Lists MapReduce jobs"
``list procedures``,"Lists Procedures"
``list programs``,"Lists all programs"
``list services``,"Lists Services"
``list spark``,"Lists Spark jobs"
``list streams``,"Lists Streams"
``list workflows``,"Lists Workflows"
``send stream ``,"Sends an event to a Stream"
``set flowlet instances ``,"Sets the instances of a Flowlet"
``set procedure instances ``,"Sets the instances of a Procedure"
``set runnable instances ``,"Sets the instances of a Runnable"
``set stream ttl ``,"Sets the Time-to-Live (TTL) of a Stream"
``start flow ``,"Starts a Flow"
``start mapreduce ``,"Starts a MapReduce job"
``start procedure ``,"Starts a Procedure"
``start service ``,"Starts a Service"
``start spark ``,"Starts a Spark job"
``start workflow ``,"Starts a Workflow"
``stop flow ``,"Stops a Flow"
``stop mapreduce ``,"Stops a MapReduce job"
``stop procedure ``,"Stops a Procedure"
``stop service ``,"Stops a Service"
``stop spark ``,"Stops a Spark job"
``stop workflow ``,"Stops a Workflow"
``truncate dataset instance ``,"Truncates a Dataset"
``truncate stream ``,"Truncates a Stream"
```