-
Notifications
You must be signed in to change notification settings - Fork 1
/
butler-survey.yml
50 lines (47 loc) · 1.15 KB
/
butler-survey.yml
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
deprecated: false
butlerVersion: ">=0.8.0"
questions:
- type: input
name: drink
message: "What is your favorite drink?"
help: "Allowed character 0-9, A-Z, _-"
required: true
- type: select
name: color
message: "Choose a color:"
options: ["red", "green", "yellow"]
- type: multiselect
name: lang
message: "Choose your programming language:"
options: ["c#", "go", "javascript"]
default: ["c#"]
- type: select
name: db
message: "Choose your database:"
options: ["mongodb", "mssql", "redis"]
required: true
- type: password
name: dbPassword
message: "Please enter a db password"
required: true
- type: confirm
name: printNode
message: "Should we print the Node Version?"
afterHooks:
- name: print npm version
cmd: node
args: ["-v"]
enabled: getPrintNode
verbose: true
- name: print npm version
cmd: npm
args: ["-v"]
enabled: eq getDb "mongodb"
verbose: true
- name: sleep 3 seconds
cmd: powershell
args: ["-command", "Start-Sleep -s 3"]
variables:
test: fooBar
db: "{ toUpperCase getDb }"
projectName: "{ toUpperCase .Project.Name }"