mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 09:26:42 +00:00
HTML Encode documentation require parameters
This commit is contained in:
parent
94ce15bc2c
commit
6e6a01c33c
@ -1,4 +1,4 @@
|
||||
# app associate <id>
|
||||
# app associate <id>
|
||||
|
||||
Use this command to associate a project directory with a resin application.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# app create <name>
|
||||
# app create <name>
|
||||
|
||||
Use this command to create a new resin.io application.
|
||||
|
||||
@ -16,6 +16,6 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --type, -t <type>
|
||||
### --type, -t <type>
|
||||
|
||||
application type
|
@ -1,4 +1,4 @@
|
||||
# app <id>
|
||||
# app <id>
|
||||
|
||||
Use this command to show detailed information for a single application.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# app rm <id>
|
||||
# app rm <id>
|
||||
|
||||
Use this command to remove a resin.io application.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# app restart <id>
|
||||
# app restart <id>
|
||||
|
||||
Use this command to restart all devices that belongs to a certain application.
|
||||
|
||||
|
@ -13,10 +13,10 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --username, -u <username>
|
||||
### --username, -u <username>
|
||||
|
||||
user name
|
||||
|
||||
### --password, -p <password>
|
||||
### --password, -p <password>
|
||||
|
||||
user password
|
@ -18,14 +18,14 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --email, -e <email>
|
||||
### --email, -e <email>
|
||||
|
||||
user email
|
||||
|
||||
### --username, -u <username>
|
||||
### --username, -u <username>
|
||||
|
||||
user name
|
||||
|
||||
### --password, -p <user password>
|
||||
### --password, -p <user password>
|
||||
|
||||
user password
|
@ -1,4 +1,4 @@
|
||||
# device identify <uuid>
|
||||
# device identify <uuid>
|
||||
|
||||
Use this command to identify a device.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# device <id>
|
||||
# device <id>
|
||||
|
||||
Use this command to show information about a single device.
|
||||
|
||||
|
@ -32,18 +32,18 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --application, --a,app, --a,app <application>
|
||||
### --application, --a,app, --a,app <application>
|
||||
|
||||
application id
|
||||
|
||||
### --network, -n <network>
|
||||
### --network, -n <network>
|
||||
|
||||
network type
|
||||
|
||||
### --ssid, -s <ssid>
|
||||
### --ssid, -s <ssid>
|
||||
|
||||
wifi ssid, if network is wifi
|
||||
|
||||
### --key, -k <key>
|
||||
### --key, -k <key>
|
||||
|
||||
wifi key, if network is wifi
|
@ -8,6 +8,6 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --application, --a,app, --a,app <application>
|
||||
### --application, --a,app, --a,app <application>
|
||||
|
||||
application id
|
@ -1,4 +1,4 @@
|
||||
# device rm <id>
|
||||
# device rm <id>
|
||||
|
||||
Use this command to remove a device from resin.io.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# device rename <id> [name]
|
||||
# device rename <id> [name]
|
||||
|
||||
Use this command to rename a device.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# env add <key> [value]
|
||||
# env add <key> [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 <application>
|
||||
|
||||
application id
|
@ -14,7 +14,7 @@ Example:
|
||||
|
||||
## Options
|
||||
|
||||
### --application, --a,app, --a,app <application>
|
||||
### --application, --a,app, --a,app <application>
|
||||
|
||||
application id
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# env rm <id>
|
||||
# env rm <id>
|
||||
|
||||
Use this command to remove an environment variable from an application.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# env rename <id> <value>
|
||||
# env rename <id> <value>
|
||||
|
||||
Use this command to rename an enviroment variable from an application.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# example clone <id>
|
||||
# example clone <id>
|
||||
|
||||
Use this command to clone an example application to the current directory
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# example <id>
|
||||
# example <id>
|
||||
|
||||
Use this command to show information of a single example application
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# key add <name> [path]
|
||||
# key add <name> [path]
|
||||
|
||||
Use this command to associate a new SSH key with your account.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# key <id>
|
||||
# key <id>
|
||||
|
||||
Use this command to show information about a single SSH key.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# key rm <id>
|
||||
# key rm <id>
|
||||
|
||||
Use this command to remove a SSH key from resin.io.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# note <|note>
|
||||
# note <|note>
|
||||
|
||||
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 <device>
|
||||
|
||||
device id
|
@ -1,4 +1,4 @@
|
||||
# os download <id>
|
||||
# os download <id>
|
||||
|
||||
Use this command to download the device OS configured to a specific network.
|
||||
|
||||
@ -22,18 +22,18 @@ Examples:
|
||||
|
||||
## Options
|
||||
|
||||
### --network, -n <network>
|
||||
### --network, -n <network>
|
||||
|
||||
network type
|
||||
|
||||
### --ssid, -s <ssid>
|
||||
### --ssid, -s <ssid>
|
||||
|
||||
wifi ssid, if network is wifi
|
||||
|
||||
### --key, -k <key>
|
||||
### --key, -k <key>
|
||||
|
||||
wifi key, if network is wifi
|
||||
|
||||
### --output, -o <output>
|
||||
### --output, -o <output>
|
||||
|
||||
output file
|
@ -1,4 +1,4 @@
|
||||
# os install <image> [device]
|
||||
# os install <image> [device]
|
||||
|
||||
Use this command to write an operating system image to a device.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# plugin install <name>
|
||||
# plugin install <name>
|
||||
|
||||
Use this command to install a resin plugin
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# plugin rm <name>
|
||||
# plugin rm <name>
|
||||
|
||||
Use this command to remove a resin.io plugin.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
# plugin update <name>
|
||||
# plugin update <name>
|
||||
|
||||
Use this command to update a resin plugin
|
||||
|
||||
|
@ -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
|
||||
"""
|
||||
|
@ -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)
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user