Skip to content

Commit c3b1a0d

Browse files
committed
remove YAML monkey patch
1 parent dd0ba6a commit c3b1a0d

12 files changed

Lines changed: 267 additions & 246 deletions

File tree

lib/bashly/commands/doc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def raw_data
7575
@raw_data ||= begin
7676
result = {}
7777
Dir["#{docs_dir}/*.yml"].each do |path|
78-
result.merge! YAML.load_file(path)
78+
result.merge! YAML.trusted_load_file(path)
7979
end
8080
result
8181
end
Lines changed: 141 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -1,156 +1,141 @@
1-
bashly:
2-
- --help
3-
- -h
4-
- --version
5-
- -v
6-
- init
7-
- preview
8-
- validate
9-
- generate
10-
- add
11-
- doc
12-
- completions
13-
- shell
14-
15-
bashly init: &init
16-
- --help
17-
- -h
18-
- --minimal
19-
- -m
20-
21-
bashly i: *init
22-
23-
bashly preview: &preview
24-
- --help
25-
- -h
26-
27-
bashly p: *preview
28-
29-
bashly validate: &validate
30-
- --help
31-
- -h
32-
- --verbose
33-
- -v
34-
35-
bashly v: *validate
36-
37-
bashly generate: &generate
38-
- --help
39-
- -h
40-
- --env
41-
- --force
42-
- --quiet
43-
- --upgrade
44-
- --watch
45-
- --wrap
46-
- -e
47-
- -f
48-
- -q
49-
- -r
50-
- -u
51-
- -w
52-
53-
bashly g: *generate
54-
55-
bashly generate*--env: &env
56-
- development
57-
- production
58-
59-
bashly generate*-e: *env
60-
bashly g*--env: *env
61-
bashly g*-e: *env
62-
63-
bashly add: &add
64-
- --help
65-
- -h
66-
- --force
67-
- --list
68-
- --source
69-
- -f
70-
- -l
71-
- -s
72-
- colors
73-
- completions
74-
- completions_script
75-
- completions_yaml
76-
- config
77-
- help
78-
- hooks
79-
- lib
80-
- settings
81-
- strings
82-
- test
83-
- validations
84-
- yaml
85-
86-
bashly a: *add
87-
88-
bashly doc: &doc
89-
- --help
90-
- -h
91-
- --index
92-
- -i
93-
- arg
94-
- arg.allowed
95-
- arg.completions
96-
- arg.default
97-
- arg.help
98-
- arg.name
99-
- arg.repeatable
100-
- arg.required
101-
- arg.validate
102-
- command
103-
- command.alias
104-
- command.args
105-
- command.catch_all
106-
- command.commands
107-
- command.completions
108-
- command.default
109-
- command.dependencies
110-
- command.environment_variables
111-
- command.examples
112-
- command.expose
113-
- command.extensible
114-
- command.filename
115-
- command.filters
116-
- command.flags
117-
- command.footer
118-
- command.function
119-
- command.group
120-
- command.help
121-
- command.name
122-
- command.private
123-
- command.version
124-
- environment_variable
125-
- environment_variable.default
126-
- environment_variable.help
127-
- environment_variable.name
128-
- environment_variable.private
129-
- environment_variable.required
130-
- flag
131-
- flag.allowed
132-
- flag.arg
133-
- flag.completions
134-
- flag.conflicts
135-
- flag.default
136-
- flag.help
137-
- flag.long
138-
- flag.private
139-
- flag.repeatable
140-
- flag.required
141-
- flag.short
142-
- flag.validate
143-
144-
bashly completions: &completions
145-
- --help
146-
- -h
147-
- --install
148-
- -i
149-
150-
bashly c: *completions
151-
152-
bashly shell: &shell
153-
- --help
154-
- -h
155-
156-
bashly s: *shell
1+
patterns:
2+
- bashly [root options]
3+
- bashly init|i [init options]
4+
- bashly preview|p [preview options]
5+
- bashly validate|v [validate options]
6+
- bashly generate|build|g [generate options]
7+
- bashly add|a [add options] <library>
8+
- bashly doc [doc options] <doc>
9+
- bashly completions|c [completions options]
10+
- bashly render [render options] <render_source>
11+
- bashly shell|s [shell options]
12+
13+
options:
14+
root:
15+
- --help|-h
16+
- --version|-v
17+
init:
18+
- --help|-h
19+
- --minimal|-m
20+
preview:
21+
- --help|-h
22+
validate:
23+
- --help|-h
24+
- --verbose|-v
25+
generate:
26+
- --help|-h
27+
- --env|-e <env>
28+
- --force|-f
29+
- --quiet|-q
30+
- --upgrade|-u
31+
- --watch|-w
32+
- --wrap|-r <function>
33+
add:
34+
- --help|-h
35+
- --force|-f
36+
- --list|-l
37+
- --source|-s <source>
38+
doc:
39+
- --help|-h
40+
- --index|-i
41+
completions:
42+
- --help|-h
43+
- --install|-i
44+
- --uninstall|-u
45+
render:
46+
- --help|-h
47+
- --watch|-w
48+
- --show|-s <path>
49+
- --list|-l
50+
- --about|-a
51+
shell:
52+
- --help|-h
53+
54+
tokens:
55+
env:
56+
- development
57+
- production
58+
function:
59+
source:
60+
path:
61+
library:
62+
- colors
63+
- completions
64+
- completions_script
65+
- completions_yaml
66+
- config
67+
- help
68+
- hooks
69+
- ini
70+
- lib
71+
- render_markdown
72+
- render_markdown_github
73+
- render_mandoc
74+
- settings
75+
- stacktrace
76+
- strings
77+
- validations
78+
- yaml
79+
doc:
80+
- arg
81+
- arg.allowed
82+
- arg.completions
83+
- arg.default
84+
- arg.help
85+
- arg.name
86+
- arg.repeatable
87+
- arg.required
88+
- arg.validate
89+
- command
90+
- command.alias
91+
- command.args
92+
- command.catch_all
93+
- command.commands
94+
- command.completions
95+
- command.default
96+
- command.dependencies
97+
- command.environment_variables
98+
- command.examples
99+
- command.expose
100+
- command.extensible
101+
- command.filename
102+
- command.filters
103+
- command.flags
104+
- command.footer
105+
- command.function
106+
- command.group
107+
- command.help
108+
- command.help_header_override
109+
- command.name
110+
- command.private
111+
- command.variables
112+
- command.version
113+
- environment_variable
114+
- environment_variable.default
115+
- environment_variable.help
116+
- environment_variable.name
117+
- environment_variable.private
118+
- environment_variable.required
119+
- environment_variable.validate
120+
- flag
121+
- flag.allowed
122+
- flag.arg
123+
- flag.completions
124+
- flag.conflicts
125+
- flag.default
126+
- flag.help
127+
- flag.long
128+
- flag.needs
129+
- flag.private
130+
- flag.repeatable
131+
- flag.required
132+
- flag.short
133+
- flag.unique
134+
- flag.validate
135+
- variable
136+
- variable.name
137+
- variable.value
138+
render_source:
139+
- :mandoc
140+
- :markdown
141+
- :markdown_github

0 commit comments

Comments
 (0)