forked from sample-accelerators/csharp-weatherforecast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelerator.yaml
34 lines (34 loc) · 895 Bytes
/
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
accelerator:
displayName: C# Weather Forecast
description: A C# sample accelerator
iconUrl: https://seeklogo.com/images/C/c-sharp-c-logo-02F17714BA-seeklogo.com.png
tags:
- dotnet
- C#
- tanzu
options:
- name: applicationName
label: Application Name
description: Application Name
inputType: text
defaultValue: Sample
required: true
engine:
merge:
- include: [ "**" ]
exclude: [ "README.md", "Sample.csproj", "config/**", "catalog/**" ]
chain:
- type: ReplaceText
substitutions:
- text: Sample
with: "#applicationName"
- include: [ "Sample.csproj" ]
chain:
- type: RewritePath
rewriteTo: "#applicationName + '.csproj'"
- include: [ "README.md", "config/*.yaml", "catalog/*.yaml" ]
chain:
- type: ReplaceText
substitutions:
- text: sample-app
with: "#artifactId.toLowerCase()"