Skip to content

Commit

Permalink
Update _help.py (#548)
Browse files Browse the repository at this point in the history
Adding parameters help text for mesh generate armtemplate
  • Loading branch information
vshan authored and williexu committed Mar 4, 2019
1 parent 70fbadb commit f681aa6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/mesh/azext_mesh/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
complete(previous resources will be deleted)
- name: --parameters
type: string
short-summary: json string or json arm parameter file to supplement parameters of the deployment template
short-summary: parameters in yaml file as key-value pairs or as json object or as json arm parameter file to supplement parameters of the deployment template
"""

helps['mesh generate'] = """
Expand All @@ -53,8 +53,17 @@
examples:
- name: Generate a template file for deployment.
text: az mesh generate armtemplate --input-yaml-files ./app.yaml,./network.yaml
- name: Generate a template file for deployment with parameters.
- name: Generate a template file for deployment with a yaml parameters file, which consists of key/value pairs.
text: az mesh generate armtemplate --input-yaml-files ./app.yaml,./network.yaml --parameters ../params.yaml
- name: Generate a template file for deployment with parameters in arm json format.
text: az mesh generate armtemplate --input-yaml-files ./app.yaml,./network.yaml --parameters "params.json"
- name: Generate a template file for deployment with parameters passed directly as a json object.
text: >
az mesh generate armtemplate --input-yaml-files ./app.yaml,./network.yaml --parameters "{ 'location' : {'value' : 'eastus'}, 'myparam' : {'value' : 'myvalue'} }"
parameters:
- name: --parameters
type: string
short-summary: parameters in yaml file as key-value pairs or as json object or as json arm parameter file to supplement parameters of the deployment template
"""

helps['mesh app'] = """
Expand Down

0 comments on commit f681aa6

Please sign in to comment.