-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaccelerator.yaml
51 lines (50 loc) · 1.42 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
accelerator:
displayName: Twitter Wordcloud Demo
description: A app to create a wordcloud based on tweets
iconUrl: https://raw.githubusercontent.com/tanzu-japan/twitter-wordcloud-demo/main/img/pic1.png
tags:
- java
- spring
- cloud
- wavefront
- tanzu
- twitter
# options for the UI
options:
- name: appName
inputType: text
label: app name of app
description: app name
defaultValue: wordcloud
required: true
- name: hashTags
inputType: text
label: Hash tags to search
description: Hash tags to search (e.g. #hoge)
required: true
- name: twitterBearerToken
inputType: text
label: Twitter API bearer token (e.g. AAAA...BSufQEAAAAAp9W...)
required: true
engine:
merge:
- include: [ "**" ]
exclude: [ "wordcloud/src/main/resources/application.properties", "Tiltfile" ]
- include: [ "wordcloud/src/main/resources/application.properties" ]
chain:
- type: ReplaceText
substitutions:
- text: wordcloud
with: "#appName"
- text: "#hoge"
with: "#hashTags"
- type: ReplaceText
substitutions:
- text: my-bearer-token
with: "#twitterBearerToken"
- include: ["Tiltfile" ]
chain:
- type: ReplaceText
substitutions:
- text: my-bearer-token
with: "#twitterBearerToken"