HTML Encode documentation require parameters

This commit is contained in:
Juan Cruz Viotti 2015-03-16 08:51:26 -04:00
parent 94ce15bc2c
commit 6e6a01c33c
31 changed files with 46 additions and 43 deletions

View File

@ -1,4 +1,4 @@
# app associate <id>
# app associate &#60;id&#62;
Use this command to associate a project directory with a resin application.

View File

@ -1,4 +1,4 @@
# app create <name>
# app create &#60;name&#62;
Use this command to create a new resin.io application.
@ -16,6 +16,6 @@ Examples:
## Options
### --type, -t <type>
### --type, -t &#60;type&#62;
application type

View File

@ -1,4 +1,4 @@
# app <id>
# app &#60;id&#62;
Use this command to show detailed information for a single application.

View File

@ -1,4 +1,4 @@
# app rm <id>
# app rm &#60;id&#62;
Use this command to remove a resin.io application.

View File

@ -1,4 +1,4 @@
# app restart <id>
# app restart &#60;id&#62;
Use this command to restart all devices that belongs to a certain application.

View File

@ -13,10 +13,10 @@ Examples:
## Options
### --username, -u <username>
### --username, -u &#60;username&#62;
user name
### --password, -p <password>
### --password, -p &#60;password&#62;
user password

View File

@ -18,14 +18,14 @@ Examples:
## Options
### --email, -e <email>
### --email, -e &#60;email&#62;
user email
### --username, -u <username>
### --username, -u &#60;username&#62;
user name
### --password, -p <user password>
### --password, -p &#60;user password&#62;
user password

View File

@ -1,4 +1,4 @@
# device identify <uuid>
# device identify &#60;uuid&#62;
Use this command to identify a device.

View File

@ -1,4 +1,4 @@
# device <id>
# device &#60;id&#62;
Use this command to show information about a single device.

View File

@ -32,18 +32,18 @@ Examples:
## Options
### --application, --a,app, --a,app <application>
### --application, --a,app, --a,app &#60;application&#62;
application id
### --network, -n <network>
### --network, -n &#60;network&#62;
network type
### --ssid, -s <ssid>
### --ssid, -s &#60;ssid&#62;
wifi ssid, if network is wifi
### --key, -k <key>
### --key, -k &#60;key&#62;
wifi key, if network is wifi

View File

@ -8,6 +8,6 @@ Examples:
## Options
### --application, --a,app, --a,app <application>
### --application, --a,app, --a,app &#60;application&#62;
application id

View File

@ -1,4 +1,4 @@
# device rm <id>
# device rm &#60;id&#62;
Use this command to remove a device from resin.io.

View File

@ -1,4 +1,4 @@
# device rename <id> [name]
# device rename &#60;id&#62; [name]
Use this command to rename a device.

View File

@ -1,4 +1,4 @@
# env add <key> [value]
# env add &#60;key&#62; [value]
Use this command to add an enviroment variable to an application.
@ -17,6 +17,6 @@ Examples:
## Options
### --application, --a,app, --a,app <application>
### --application, --a,app, --a,app &#60;application&#62;
application id

View File

@ -14,7 +14,7 @@ Example:
## Options
### --application, --a,app, --a,app <application>
### --application, --a,app, --a,app &#60;application&#62;
application id

View File

@ -1,4 +1,4 @@
# env rm <id>
# env rm &#60;id&#62;
Use this command to remove an environment variable from an application.

View File

@ -1,4 +1,4 @@
# env rename <id> <value>
# env rename &#60;id&#62; &#60;value&#62;
Use this command to rename an enviroment variable from an application.

View File

@ -1,4 +1,4 @@
# example clone <id>
# example clone &#60;id&#62;
Use this command to clone an example application to the current directory

View File

@ -1,4 +1,4 @@
# example <id>
# example &#60;id&#62;
Use this command to show information of a single example application

View File

@ -1,4 +1,4 @@
# key add <name> [path]
# key add &#60;name&#62; [path]
Use this command to associate a new SSH key with your account.

View File

@ -1,4 +1,4 @@
# key <id>
# key &#60;id&#62;
Use this command to show information about a single SSH key.

View File

@ -1,4 +1,4 @@
# key rm <id>
# key rm &#60;id&#62;
Use this command to remove a SSH key from resin.io.

View File

@ -1,4 +1,4 @@
# note <|note>
# note &#60;|note&#62;
Use this command to set or update a device note.
@ -13,6 +13,6 @@ Examples:
## Options
### --device, --d,dev, --d,dev <device>
### --device, --d,dev, --d,dev &#60;device&#62;
device id

View File

@ -1,4 +1,4 @@
# os download <id>
# os download &#60;id&#62;
Use this command to download the device OS configured to a specific network.
@ -22,18 +22,18 @@ Examples:
## Options
### --network, -n <network>
### --network, -n &#60;network&#62;
network type
### --ssid, -s <ssid>
### --ssid, -s &#60;ssid&#62;
wifi ssid, if network is wifi
### --key, -k <key>
### --key, -k &#60;key&#62;
wifi key, if network is wifi
### --output, -o <output>
### --output, -o &#60;output&#62;
output file

View File

@ -1,4 +1,4 @@
# os install <image> [device]
# os install &#60;image&#62; [device]
Use this command to write an operating system image to a device.

View File

@ -1,4 +1,4 @@
# plugin install <name>
# plugin install &#60;name&#62;
Use this command to install a resin plugin

View File

@ -1,4 +1,4 @@
# plugin rm <name>
# plugin rm &#60;name&#62;
Use this command to remove a resin.io plugin.

View File

@ -1,4 +1,4 @@
# plugin update <name>
# plugin update &#60;name&#62;
Use this command to update a resin plugin

View File

@ -1,4 +1,5 @@
_ = require('lodash')
ent = require('ent')
utils = require('./utils')
exports.option = (option) ->
@ -6,7 +7,7 @@ exports.option = (option) ->
exports.command = (command) ->
result = """
# #{command.signature}
# #{ent.encode(command.signature)}
#{command.help}\n
"""

View File

@ -1,4 +1,5 @@
_ = require('lodash')
ent = require('ent')
exports.getOptionPrefix = (signature) ->
if signature.length > 1
@ -22,4 +23,4 @@ exports.parseSignature = (option) ->
if option.parameter?
result += " <#{option.parameter}>"
return result
return ent.encode(result)

View File

@ -33,6 +33,7 @@
},
"devDependencies": {
"chai": "~1.9.2",
"ent": "^2.2.0",
"gulp": "~3.8.9",
"gulp-coffee": "^2.2.0",
"gulp-coffeelint": "~0.4.0",