-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.caf
More file actions
51 lines (44 loc) · 1.45 KB
/
demo.caf
File metadata and controls
51 lines (44 loc) · 1.45 KB
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
import &ArtStandardLib
&source.start
commands:
sing: ({song}) -> "" ♫ #{song} ♫!
send-cheer: -> "" May you have a holly, jolly Christmas this year!
xmas: ({ santa, rudolph }) ->
compactFlatten []
"" Will Santa come this year?
if santa > 0 then repeat("Ho! ", santa) else 'No Santa this year.'
if rudolph then "Rudolph's nose glows!"
.join :\n
help:
description: "" A demo app with a holiday theme.
commands:
sing:
description: "Sing any name you choose"
options:
song:
description: "name of the song to sing"
required: true
send-cheer: description: "" Just a little holiday cheer.
xmas:
description: "" This will tell you exactly what you need.
options:
rudolph: "" Should Rudolph come too?
santa: :number-of-ho-hos "" Santa will come if he says 'Ho!' at least once.
examples:
santa: 10
"""
output:
Will Santa come this year?
Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho!
rudolph: true
"""
output:
Will Santa come this year?
No Santa this year.
Rudolph's nose glows!
rudolph: true santa: 10
"""
output:
Will Santa come this year?
Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho! Ho!
Rudolph's nose glows!