-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelerator.yaml
37 lines (37 loc) · 1.37 KB
/
accelerator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
accelerator:
displayName: Simple Accelerator
description: Contains just a README
iconUrl: https://blogs.vmware.com/wp-content/uploads/2022/02/tap.png
tags:
- simple
- getting-started
options:
- name: firstConfigurableParameter
inputType: text
label: The text used to replace the first placeholder text in the README.md. Converted to lowercase.
defaultValue: Configurable Parameter 1
required: true
- name: secondConfigurableParameterCheckbox
inputType: checkbox
dataType: boolean
label: Enable to configure the second configurable parameter, otherwise use the default value.
- name: secondConfigurableParameter
inputType: text
label: The text used to replace the second placeholder text in the README.md. Converted to lowercase.
defaultValue: Configurable Parameter 2
dependsOn:
name: secondConfigurableParameterCheckbox
engine:
merge:
- include: [ "README.md" ]
chain:
- type: ReplaceText
substitutions:
- text: "CONFIGURABLE_PARAMETER_1"
with: "#firstConfigurableParameter.toLowerCase()"
- condition: "#secondConfigurableParameterCheckbox"
chain:
- type: ReplaceText
substitutions:
- text: "CONFIGURABLE_PARAMETER_2"
with: "#secondConfigurableParameter.toLowerCase()"