-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli.yml
112 lines (110 loc) · 3.65 KB
/
cli.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Console Hero
author: Malte Tammena <malte.tammena@gmx.de>
about: Your GM tool for Dungeon World (http://www.dungeon-world.com/)
args:
- monster_data:
short: m
long: monster_data
value_name: FILE
help: Specify a custom monster data file
takes_value: true
default_value: data/monsters.json
- move_data:
short: o
long: move_data
value_name: FILE
help: Specify a custom move data file
takes_value: true
default_value: data/moves.json
- tag_data:
short: t
long: tag_data
value_name: FILE
help: Specify a custom tag data file
takes_value: true
default_value: data/tags.json
- item_data:
short: i
long: item_data
value_name: FILE
help: Specify a custom item data file
takes_value: true
default_value: data/items.json
- interactive:
short: I
long: interactive
help: Enter interactive mode (default, if no subcommand is given)
subcommands:
- list:
about: List all items of the given category matching the optional REGEX
long_about: |
List all items of the given category matching the optional REGEX.
Usage:
list CATEGORY REGEX
list REGEX
list
Possible categories include:
all List everything
monsters List monsters
moves List moves
items List items
tags List tags
The category and regex are optional, but you have to specify the cateory if you
want to search for something that contains 'all' or 'moves', etc.
Examples:
console-hero list drag List everything that contains 'drag'
console-hero list monsters List all monsters
console-hero list all moves List everything that contains 'moves'
args:
- CATEGORY:
help: The category to list items from
index: 1
default_value: 'all'
- REGEX:
help: The regex to match against
index: 2
default_value: '.*'
- roll:
about: Roll a die using a d20 expression
long_about: |
Roll a die using a d20 expression. The expression should be of the form:
<roll> ::= <some_die> | [ "-" ] <constant> | <roll> [ <add_del> <roll> ]
<some_die> ::= <constant> "d" <constant>
<constant> ::= "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | <constant>
<add_del> ::= "+" | "-"
Examples:
1d6 Roll a normal die
1d20 Roll a die with 20 sides
4d20 Roll 4 die with 20 sides
9d4+14 Roll 9 die with 4 sides and add 14
3d3-9+2d6 Roll 3 die with 3 sides subtract 9 and add 2 d6
-9 Return -9
-9+25-2+14-7+21 Abuse this program to calculate the answer to everything
args:
- D20_EXPR:
help: D20 expression to evaluate
required: true
- item:
about: Find the first item matching the given regex
args:
- REGEX:
help: Regex to search for
required: true
- monster:
about: Find the first monster matching the given regex
args:
- REGEX:
help: Regex to search for
required: true
- move:
about: Find the first move matching the given regex
args:
- REGEX:
help: Regex to search for
required: true
- tag:
about: Find the first tag matching the given regex
args:
- REGEX:
help: Regex to search for
required: true