OILS / _devbuild / gen / help_meta.py View on Github | oilshell.org

378 lines, 374 significant
1TOPICS = {'ARGV': 'special-var',
2 'BASHOPTS': 'special-var',
3 'BASHPID': 'special-var',
4 'BASH_REMATCH': 'special-var',
5 'Better-Syntax': 'builtin-func',
6 'Bool': 'packle',
7 'Bytes': 'packle',
8 'CDPATH': 'special-var',
9 'COMPREPLY': 'special-var',
10 'COMP_ARGV': 'special-var',
11 'COMP_CWORD': 'special-var',
12 'COMP_LINE': 'special-var',
13 'COMP_POINT': 'special-var',
14 'COMP_WORDS': 'special-var',
15 'DEBUG': 'plugin',
16 'Dict': 'packle',
17 'ENV': 'special-var',
18 'ERR': 'plugin',
19 'EUID': 'special-var',
20 'EXIT': 'plugin',
21 'Float': 'packle',
22 'GLOBIGNORE': 'special-var',
23 'HISTFILE': 'special-var',
24 'HOME': 'special-var',
25 'IFS': 'special-var',
26 'Int': 'packle',
27 'LANG': 'special-var',
28 'LINENO': 'special-var',
29 'List': 'packle',
30 'Null': 'packle',
31 'OILS_GC_ON_EXIT': 'special-var',
32 'OILS_GC_STATS': 'special-var',
33 'OILS_GC_STATS_FD': 'special-var',
34 'OILS_GC_THRESHOLD': 'special-var',
35 'OILS_VERSION': 'special-var',
36 'OLDPWD': 'special-var',
37 'OPTARG': 'special-var',
38 'OPTERR': 'special-var',
39 'OPTIND': 'special-var',
40 'PATH': 'special-var',
41 'PIPESTATUS': 'special-var',
42 'PPID': 'special-var',
43 'PS1': 'plugin',
44 'PS2': 'plugin',
45 'PS3': 'plugin',
46 'PS4': 'plugin',
47 'PWD': 'special-var',
48 'RANDOM': 'special-var',
49 'REPLY': 'special-var',
50 'RETURN': 'plugin',
51 'SECONDS': 'special-var',
52 'SHELLOPTS': 'special-var',
53 'SHX_indent': 'special-var',
54 'SHX_pid_str': 'special-var',
55 'SHX_punct': 'special-var',
56 'UID': 'special-var',
57 'Unicode': 'packle',
58 'YSH_HISTFILE': 'special-var',
59 '_end()': 'builtin-func',
60 '_error': 'special-var',
61 '_group()': 'builtin-func',
62 '_pipeline_status': 'special-var',
63 '_process_sub_status': 'special-var',
64 '_reply': 'special-var',
65 '_start()': 'builtin-func',
66 '_status': 'special-var',
67 '_this_dir': 'special-var',
68 'abs()': 'builtin-func',
69 'accum()': 'type-method',
70 'alias': 'builtin-cmd',
71 'all()': 'builtin-func',
72 'ampersand': 'cmd-lang',
73 'and': 'cmd-lang',
74 'any()': 'builtin-func',
75 'append': 'builtin-cmd',
76 'append()': 'type-method',
77 'arg': 'builtin-cmd',
78 'arith-context': 'mini-lang',
79 'arith-sub': 'word-lang',
80 'b-prefix': 'j8',
81 'bang': 'cmd-lang',
82 'block-arg': 'cmd-lang',
83 'block-literal': 'expr-lang',
84 'bool()': 'builtin-func',
85 'bool-expr': 'mini-lang',
86 'bool-infix': 'mini-lang',
87 'bool-literal': 'expr-lang',
88 'bool-other': 'mini-lang',
89 'bool-path': 'mini-lang',
90 'bool-str': 'mini-lang',
91 'boolstatus': 'builtin-cmd',
92 'braces': 'mini-lang',
93 'break': 'cmd-lang',
94 'builtin': 'builtin-cmd',
95 'call': 'cmd-lang',
96 'captureStdout()': 'type-method',
97 'case': 'cmd-lang',
98 'cat-em': 'front-end',
99 'cd': 'builtin-cmd',
100 'char-escapes': 'mini-lang',
101 'chr()': 'builtin-func',
102 'class-literal': 'expr-lang',
103 'colon': 'cmd-lang',
104 'column-attrs': 'j8',
105 'column-types': 'j8',
106 'com-sub': 'word-lang',
107 'command': 'builtin-cmd',
108 'command_sub_errexit': 'option',
109 'comment': 'front-end',
110 'compadjust': 'builtin-cmd',
111 'compexport': 'builtin-cmd',
112 'compgen': 'builtin-cmd',
113 'complete': 'builtin-cmd',
114 'compopt': 'builtin-cmd',
115 'concat': 'expr-lang',
116 'config': 'front-end',
117 'const': 'cmd-lang',
118 'continue': 'cmd-lang',
119 'copy_env': 'option',
120 'ctx': 'builtin-cmd',
121 'dashglob': 'option',
122 'dbracket': 'mini-lang',
123 'declare': 'osh-assign',
124 'dict()': 'builtin-func',
125 'dict-literal': 'expr-lang',
126 'dirs': 'builtin-cmd',
127 'doc-comment': 'front-end',
128 'dparen': 'cmd-lang',
129 'echo': 'builtin-cmd',
130 'enable': 'builtin-cmd',
131 'end()': 'type-method',
132 'endsWith()': 'type-method',
133 'equal': 'cmd-lang',
134 'erase()': 'type-method',
135 'error': 'builtin-cmd',
136 'eval': 'builtin-cmd',
137 'eval()': 'type-method',
138 'exec': 'builtin-cmd',
139 'exit': 'cmd-lang',
140 'exit-codes': 'front-end',
141 'export': 'osh-assign',
142 'expr-lit': 'expr-lang',
143 'expr-splice': 'word-lang',
144 'expr-sub': 'word-lang',
145 'extend()': 'type-method',
146 'extglob': 'mini-lang',
147 'false': 'cmd-lang',
148 'fat-arrow': 'expr-lang',
149 'fg': 'builtin-cmd',
150 'find()': 'type-method',
151 'flag': 'builtin-cmd',
152 'float()': 'builtin-func',
153 'for': 'cmd-lang',
154 'for-expr-sh': 'cmd-lang',
155 'fork': 'builtin-cmd',
156 'forkwait': 'builtin-cmd',
157 'fromJson()': 'builtin-func',
158 'fromJson8()': 'builtin-func',
159 'func-call': 'expr-lang',
160 'func-def': 'cmd-lang',
161 'get()': 'type-method',
162 'getopts': 'builtin-cmd',
163 'glob()': 'type-method',
164 'glob-pat': 'mini-lang',
165 'group()': 'type-method',
166 'hash': 'builtin-cmd',
167 'help': None,
168 'here-doc': 'cmd-lang',
169 'history': 'builtin-cmd',
170 'histsub': 'mini-lang',
171 'if': 'cmd-lang',
172 'inc()': 'type-method',
173 'indexOf()': 'type-method',
174 'insert()': 'type-method',
175 'int()': 'builtin-func',
176 'int-literal': 'expr-lang',
177 'is-main': 'builtin-cmd',
178 'j8-escape': 'j8',
179 'jobs': 'builtin-cmd',
180 'join()': 'builtin-func',
181 'json': 'builtin-cmd',
182 'json-decode-err': 'errors',
183 'json-encode-err': 'errors',
184 'json-escape': 'j8',
185 'json-string': 'j8',
186 'json8': 'builtin-cmd',
187 'json8-comment': 'j8',
188 'json8-decode-err': 'errors',
189 'json8-dict': 'j8',
190 'json8-encode-err': 'errors',
191 'json8-list': 'j8',
192 'json8-num': 'j8',
193 'json8-str': 'j8',
194 'keys()': 'type-method',
195 'kill': 'builtin-cmd',
196 'lazy-expr-arg': 'cmd-lang',
197 'leftMatch()': 'type-method',
198 'len()': 'builtin-func',
199 'line-continuation': 'front-end',
200 'list()': 'builtin-func',
201 'list-literal': 'expr-lang',
202 'local': 'osh-assign',
203 'lower()': 'type-method',
204 'mapfile': 'builtin-cmd',
205 'match-ops': 'expr-lang',
206 'max()': 'builtin-func',
207 'maybe()': 'builtin-func',
208 'min()': 'builtin-func',
209 'module': 'builtin-cmd',
210 'multiline-command': 'front-end',
211 'named-class': 'expr-lang',
212 'no-prefix': 'j8',
213 'nullglob': 'option',
214 'oils-usage': None,
215 'op-format': 'word-lang',
216 'op-index': 'word-lang',
217 'op-replace': 'word-lang',
218 'op-slice': 'word-lang',
219 'op-strip': 'word-lang',
220 'op-test': 'word-lang',
221 'or': 'cmd-lang',
222 'ord()': 'builtin-func',
223 'osh-chapters': None,
224 'osh-string': 'word-lang',
225 'osh-usage': None,
226 'packle-decode-err': 'errors',
227 'packle-encode-err': 'errors',
228 'parseArgs()': 'builtin-cmd',
229 'parse_at': 'option',
230 'parse_brace': 'option',
231 'parse_equals': 'option',
232 'parse_ignored': 'option',
233 'parse_paren': 'option',
234 'parse_triple_quote': 'option',
235 'parse_ysh_string': 'option',
236 'parser': 'builtin-cmd',
237 'pipe': 'cmd-lang',
238 'pop()': 'type-method',
239 'popd': 'builtin-cmd',
240 'pp': 'builtin-cmd',
241 'printf': 'builtin-cmd',
242 'proc-def': 'cmd-lang',
243 'process_sub_fail': 'option',
244 'promptVal()': 'type-method',
245 'push-registers': 'builtin-cmd',
246 'pushd': 'builtin-cmd',
247 'pwd': 'builtin-cmd',
248 'range': 'expr-lang',
249 're-capture': 'expr-lang',
250 're-compound': 'expr-lang',
251 're-flags': 'expr-lang',
252 're-literal': 'expr-lang',
253 're-multiline': 'expr-lang',
254 're-primitive': 'expr-lang',
255 're-repeat': 'expr-lang',
256 're-splice': 'expr-lang',
257 'read': 'builtin-cmd',
258 'readarray': 'builtin-cmd',
259 'redir-desc': 'cmd-lang',
260 'redir-file': 'cmd-lang',
261 'regex': 'mini-lang',
262 'remove()': 'type-method',
263 'renderPrompt()': 'plugin',
264 'repeat()': 'builtin-func',
265 'replace()': 'type-method',
266 'rest': 'builtin-cmd',
267 'return': 'cmd-lang',
268 'reverse()': 'type-method',
269 'round()': 'builtin-func',
270 'rune-literal': 'expr-lang',
271 'runes()': 'builtin-func',
272 'runproc': 'builtin-cmd',
273 'search()': 'type-method',
274 'semicolon': 'cmd-lang',
275 'set': 'builtin-cmd',
276 'setValue()': 'type-method',
277 'setglobal': 'cmd-lang',
278 'setvar': 'cmd-lang',
279 'sh-append': 'osh-assign',
280 'sh-arith': 'mini-lang',
281 'sh-array': 'osh-assign',
282 'sh-assign': 'osh-assign',
283 'sh-assoc': 'osh-assign',
284 'sh-bitwise': 'mini-lang',
285 'sh-block': 'cmd-lang',
286 'sh-func': 'cmd-lang',
287 'sh-logical': 'mini-lang',
288 'sh-numbers': 'mini-lang',
289 'shSplit()': 'builtin-func',
290 'shift': 'osh-assign',
291 'shopt': 'builtin-cmd',
292 'shvar': 'builtin-cmd',
293 'shvar_get()': 'builtin-func',
294 'sigpipe_status_ok': 'option',
295 'simple-command': 'cmd-lang',
296 'simple_word_eval': 'option',
297 'source': 'builtin-cmd',
298 'split()': 'builtin-func',
299 'start()': 'type-method',
300 'startsWith()': 'type-method',
301 'startup': 'front-end',
302 'str()': 'builtin-func',
303 'str-template': 'expr-lang',
304 'strcmp()': 'builtin-func',
305 'strftime()': 'type-method',
306 'strict:all': 'option',
307 'strict_control_flow': 'option',
308 'strict_nameref': 'option',
309 'strict_tilde': 'option',
310 'strict_word_eval': 'option',
311 'subshell': 'cmd-lang',
312 'sum()': 'builtin-func',
313 'surrogate-pair': 'j8',
314 'tagged-str': 'word-lang',
315 'test': 'builtin-cmd',
316 'thin-arrow': 'expr-lang',
317 'tilde-sub': 'word-lang',
318 'time': 'cmd-lang',
319 'time()': 'type-method',
320 'times': 'builtin-cmd',
321 'toJson()': 'builtin-func',
322 'toJson8()': 'builtin-func',
323 'trap': 'builtin-cmd',
324 'trim()': 'type-method',
325 'trimEnd()': 'type-method',
326 'trimStart()': 'type-method',
327 'triple-quoted': 'word-lang',
328 'true': 'cmd-lang',
329 'try': 'builtin-cmd',
330 'type': 'builtin-cmd',
331 'type()': 'builtin-func',
332 'typed-arg': 'cmd-lang',
333 'typeset': 'osh-assign',
334 'u-prefix': 'j8',
335 'umask': 'builtin-cmd',
336 'unalias': 'builtin-cmd',
337 'unset': 'osh-assign',
338 'until': 'cmd-lang',
339 'upper()': 'type-method',
340 'use': 'builtin-cmd',
341 'utf8-decode-err': 'errors',
342 'utf8-encode-err': 'errors',
343 'values()': 'type-method',
344 'var': 'cmd-lang',
345 'var-splice': 'word-lang',
346 'var-sub': 'word-lang',
347 'wait': 'builtin-cmd',
348 'while': 'cmd-lang',
349 'write': 'builtin-cmd',
350 'ysh-arith': 'expr-lang',
351 'ysh-bitwise': 'expr-lang',
352 'ysh-case': 'cmd-lang',
353 'ysh-cd': 'builtin-cmd',
354 'ysh-chapters': None,
355 'ysh-compare': 'expr-lang',
356 'ysh-for': 'cmd-lang',
357 'ysh-format': 'word-lang',
358 'ysh-if': 'cmd-lang',
359 'ysh-index': 'expr-lang',
360 'ysh-logical': 'expr-lang',
361 'ysh-printf': 'word-lang',
362 'ysh-read': 'builtin-cmd',
363 'ysh-return': 'cmd-lang',
364 'ysh-shopt': 'builtin-cmd',
365 'ysh-slice': 'expr-lang',
366 'ysh-string': 'word-lang',
367 'ysh-ternary': 'expr-lang',
368 'ysh-usage': None,
369 'ysh-while': 'cmd-lang',
370 'ysh:all': 'option',
371 'ysh:upgrade': 'option'}
372
373
374from typing import Dict
375
376def TopicMetadata():
377 # type: () -> Dict[str, str]
378 return TOPICS