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

475 lines, 471 significant
1TOPICS = {'ARGV': 'special-var',
2 'BASHOPTS': 'special-var',
3 'BASHPID': 'special-var',
4 'BASH_LINENO': 'special-var',
5 'BASH_REMATCH': 'special-var',
6 'BASH_SOURCE': 'special-var',
7 'BashArray': 'type-method',
8 'BashAssoc': 'type-method',
9 'Bool': 'type-method',
10 'BoundFunc': 'type-method',
11 'BuiltinFunc': 'type-method',
12 'BuiltinProc': 'type-method',
13 'CDPATH': 'special-var',
14 'COMPREPLY': 'special-var',
15 'COMP_ARGV': 'special-var',
16 'COMP_CWORD': 'special-var',
17 'COMP_LINE': 'special-var',
18 'COMP_POINT': 'special-var',
19 'COMP_WORDBREAKS': 'special-var',
20 'COMP_WORDS': 'special-var',
21 'Command': 'type-method',
22 'CommandFrag': 'type-method',
23 'DEBUG': 'plugin',
24 'Dict': 'type-method',
25 'Dict/clear': 'type-method',
26 'ENV': 'special-var',
27 'ERR': 'plugin',
28 'EUID': 'special-var',
29 'EXIT': 'plugin',
30 'Eggex': 'type-method',
31 'Expr': 'type-method',
32 'FUNCNAME': 'special-var',
33 'Float': 'type-method',
34 'Frame': 'type-method',
35 'Func': 'type-method',
36 'GLOBIGNORE': 'special-var',
37 'HISTFILE': 'special-var',
38 'HOME': 'special-var',
39 'HOSTNAME': 'special-var',
40 'IFS': 'special-var',
41 'INFINITY': 'special-var',
42 'Int': 'type-method',
43 'LANG': 'special-var',
44 'LIB_OSH': 'special-var',
45 'LIB_YSH': 'special-var',
46 'LINENO': 'special-var',
47 'List': 'type-method',
48 'List/append': 'type-method',
49 'List/clear': 'type-method',
50 'Match': 'type-method',
51 'NAN': 'special-var',
52 'Null': 'type-method',
53 'OILS_GC_ON_EXIT': 'special-var',
54 'OILS_GC_STATS': 'special-var',
55 'OILS_GC_STATS_FD': 'special-var',
56 'OILS_GC_THRESHOLD': 'special-var',
57 'OILS_VERSION': 'special-var',
58 'OLDPWD': 'special-var',
59 'OPTARG': 'special-var',
60 'OPTERR': 'special-var',
61 'OPTIND': 'special-var',
62 'OSTYPE': 'special-var',
63 'Obj': 'type-method',
64 'PATH': 'special-var',
65 'PIPESTATUS': 'special-var',
66 'PPID': 'special-var',
67 'PROMPT_COMMAND': 'plugin',
68 'PS1': 'plugin',
69 'PS2': 'plugin',
70 'PS3': 'plugin',
71 'PS4': 'plugin',
72 'PWD': 'special-var',
73 'Place': 'type-method',
74 'Proc': 'type-method',
75 'RANDOM': 'special-var',
76 'REPLY': 'special-var',
77 'RETURN': 'plugin',
78 'Range': 'type-method',
79 'SECONDS': 'special-var',
80 'SHELLOPTS': 'special-var',
81 'SHX_indent': 'special-var',
82 'SHX_pid_str': 'special-var',
83 'SHX_punct': 'special-var',
84 'SIGINT': 'plugin',
85 'SIGQUIT': 'plugin',
86 'SIGTERM': 'plugin',
87 'SIGTTIN': 'plugin',
88 'SIGTTOU': 'plugin',
89 'SIGWINCH': 'plugin',
90 'Str': 'type-method',
91 'UID': 'special-var',
92 'YSH_HISTFILE': 'special-var',
93 '__call__': 'type-method',
94 '__defaults__': 'special-var',
95 '__index__': 'type-method',
96 '__invoke__': 'type-method',
97 '__provide__': 'special-var',
98 '__str__': 'type-method',
99 '_end': 'builtin-func',
100 '_error': 'special-var',
101 '_group': 'builtin-func',
102 '_pipeline_status': 'special-var',
103 '_process_sub_status': 'special-var',
104 '_reply': 'special-var',
105 '_start': 'builtin-func',
106 '_status': 'special-var',
107 '_this_dir': 'special-var',
108 'abs': 'stdlib',
109 'accum': 'type-method',
110 'alias': 'builtin-cmd',
111 'all': 'stdlib',
112 'ampersand': 'cmd-lang',
113 'and': 'cmd-lang',
114 'any': 'stdlib',
115 'append': 'index',
116 'arg': 'stdlib',
117 'arith-context': 'mini-lang',
118 'arith-sub': 'word-lang',
119 'ascii-control-chars': 'front-end',
120 'ascii-whitespace': 'front-end',
121 'assert': 'builtin-cmd',
122 'assign': 'expr-lang',
123 'atom-literal': 'expr-lang',
124 'aug-assign': 'expr-lang',
125 'b-prefix': 'j8',
126 'bang': 'cmd-lang',
127 'block-arg': 'cmd-lang',
128 'block-expr': 'expr-lang',
129 'bool': 'builtin-func',
130 'bool-expr': 'mini-lang',
131 'bool-infix': 'mini-lang',
132 'bool-other': 'mini-lang',
133 'bool-path': 'mini-lang',
134 'bool-str': 'mini-lang',
135 'boolstatus': 'builtin-cmd',
136 'braces': 'mini-lang',
137 'break': 'cmd-lang',
138 'builtin': 'builtin-cmd',
139 'bytes': 'builtin-func',
140 'call': 'ysh-cmd',
141 'captureStdout': 'type-method',
142 'case': 'cmd-lang',
143 'cat-em': 'front-end',
144 'cd': 'builtin-cmd',
145 'char-escapes': 'mini-lang',
146 'char-literal': 'expr-lang',
147 'class-literal': 'expr-lang',
148 'clear': 'index',
149 'cmd/append': 'builtin-cmd',
150 'cmd/false': 'builtin-cmd',
151 'cmd/true': 'builtin-cmd',
152 'cmd/type': 'builtin-cmd',
153 'colon': 'builtin-cmd',
154 'column-attrs': 'j8',
155 'column-types': 'j8',
156 'command': 'builtin-cmd',
157 'command-sub': 'word-lang',
158 'comment': 'front-end',
159 'compadjust': 'builtin-cmd',
160 'compexport': 'builtin-cmd',
161 'compgen': 'builtin-cmd',
162 'complete': 'plugin',
163 'compopt': 'builtin-cmd',
164 'concat': 'expr-lang',
165 'config': 'front-end',
166 'const': 'ysh-cmd',
167 'continue': 'cmd-lang',
168 'ctx': 'builtin-cmd',
169 'dashglob': 'option',
170 'dbracket': 'cmd-lang',
171 'declare': 'osh-assign',
172 'dict': 'builtin-func',
173 'dict-literal': 'expr-lang',
174 'die': 'stdlib',
175 'dirs': 'builtin-cmd',
176 'doc-comment': 'front-end',
177 'dparen': 'cmd-lang',
178 'echo': 'builtin-cmd',
179 'enable': 'builtin-cmd',
180 'encodeBytes': 'builtin-func',
181 'encodeRunes': 'builtin-func',
182 'end': 'type-method',
183 'endsWith': 'type-method',
184 'equal': 'ysh-cmd',
185 'erase': 'type-method',
186 'err-j8-lines-decode': 'errors',
187 'err-j8-lines-encode': 'errors',
188 'err-j8-str-decode': 'errors',
189 'err-j8-str-encode': 'errors',
190 'err-json-decode': 'errors',
191 'err-json-encode': 'errors',
192 'err-json8-decode': 'errors',
193 'err-json8-encode': 'errors',
194 'err-utf8-decode': 'errors',
195 'err-utf8-encode': 'errors',
196 'error': 'builtin-cmd',
197 'eval': 'type-method',
198 'evalExpr': 'type-method',
199 'evalHay': 'builtin-func',
200 'evalToDict': 'type-method',
201 'eval_unsafe_arith': 'option',
202 'exec': 'builtin-cmd',
203 'exit': 'cmd-lang',
204 'exit-codes': 'front-end',
205 'export': 'osh-assign',
206 'expr-literal': 'expr-lang',
207 'expr-splice': 'word-lang',
208 'expr-sub': 'word-lang',
209 'expr/false': 'type-method',
210 'expr/true': 'type-method',
211 'extend': 'type-method',
212 'extglob': 'mini-lang',
213 'failed': 'builtin-cmd',
214 'false': 'index',
215 'fat-arrow': 'expr-lang',
216 'fg': 'builtin-cmd',
217 'find': 'type-method',
218 'first': 'builtin-func',
219 'flag': 'stdlib',
220 'float': 'builtin-func',
221 'float-lit': 'expr-lang',
222 'floatsEqual': 'builtin-func',
223 'fopen': 'builtin-cmd',
224 'for': 'cmd-lang',
225 'for-expr-sh': 'cmd-lang',
226 'fork': 'builtin-cmd',
227 'forkwait': 'builtin-cmd',
228 'fromJson': 'builtin-func',
229 'fromJson8': 'builtin-func',
230 'func': 'ysh-cmd',
231 'func/type': 'builtin-func',
232 'get': 'builtin-func',
233 'getFrame': 'type-method',
234 'getVar': 'builtin-func',
235 'getopts': 'builtin-cmd',
236 'glob': 'type-method',
237 'glob-pat': 'mini-lang',
238 'group': 'type-method',
239 'hash': 'builtin-cmd',
240 'hay': 'builtin-cmd',
241 'haynode': 'builtin-cmd',
242 'help': None,
243 'here-doc': 'cmd-lang',
244 'here-str': 'cmd-lang',
245 'history': 'builtin-cmd',
246 'histsub': 'mini-lang',
247 'id': 'type-method',
248 'if': 'cmd-lang',
249 'ignore_flags_not_impl': 'option',
250 'ignore_shopt_not_impl': 'option',
251 'indexOf': 'type-method',
252 'insert': 'type-method',
253 'int': 'builtin-func',
254 'int-literal': 'expr-lang',
255 'io': 'type-method',
256 'is-main': 'builtin-cmd',
257 'j8-escape': 'j8',
258 'jobs': 'builtin-cmd',
259 'join': 'builtin-func',
260 'json': 'builtin-cmd',
261 'json-escape': 'j8',
262 'json-string': 'j8',
263 'json8': 'builtin-cmd',
264 'json8-comment': 'j8',
265 'json8-dict': 'j8',
266 'json8-list': 'j8',
267 'json8-num': 'j8',
268 'json8-str': 'j8',
269 'keys': 'builtin-func',
270 'kill': 'builtin-cmd',
271 'lazy-expr-arg': 'cmd-lang',
272 'leftMatch': 'type-method',
273 'len': 'builtin-func',
274 'line-continuation': 'front-end',
275 'line-editing': 'front-end',
276 'list': 'builtin-func',
277 'list-literal': 'expr-lang',
278 'local': 'osh-assign',
279 'log': 'stdlib',
280 'lower': 'type-method',
281 'mapfile': 'builtin-cmd',
282 'match-ops': 'expr-lang',
283 'max': 'stdlib',
284 'maybe': 'builtin-func',
285 'min': 'stdlib',
286 'multiline-command': 'front-end',
287 'named-class': 'expr-lang',
288 'new': 'type-method',
289 'no-prefix': 'j8',
290 'nq-assert': 'stdlib',
291 'nq-capture': 'stdlib',
292 'nq-capture-2': 'stdlib',
293 'nq-redir': 'stdlib',
294 'nq-redir-2': 'stdlib',
295 'nq-run': 'stdlib',
296 'null': 'type-method',
297 'nullglob': 'option',
298 'oils-usage': None,
299 'op-format': 'word-lang',
300 'op-index': 'word-lang',
301 'op-patsub': 'word-lang',
302 'op-precedence': 'expr-lang',
303 'op-slice': 'word-lang',
304 'op-strip': 'word-lang',
305 'op-test': 'word-lang',
306 'opts-internal': 'option',
307 'opts-redefine': 'option',
308 'or': 'cmd-lang',
309 'osh-chapters': None,
310 'osh-string': 'word-lang',
311 'osh-usage': None,
312 'parseArgs': 'stdlib',
313 'parseCommand': 'builtin-func',
314 'parseExpr': 'builtin-func',
315 'parseHay': 'builtin-func',
316 'parse_ignored': 'option',
317 'parse_triple_quote': 'option',
318 'parse_ysh_string': 'option',
319 'parser': 'stdlib',
320 'pipe': 'cmd-lang',
321 'pop': 'type-method',
322 'popd': 'builtin-cmd',
323 'pp': 'builtin-cmd',
324 'prefix-binding': 'cmd-lang',
325 'printf': 'builtin-cmd',
326 'proc': 'ysh-cmd',
327 'proc-sub': 'word-lang',
328 'promptVal': 'type-method',
329 'push-registers': 'builtin-cmd',
330 'pushd': 'builtin-cmd',
331 'pwd': 'builtin-cmd',
332 'range': 'expr-lang',
333 're-capture': 'expr-lang',
334 're-compound': 'expr-lang',
335 're-flags': 'expr-lang',
336 're-literal': 'expr-lang',
337 're-multiline': 'expr-lang',
338 're-primitive': 'expr-lang',
339 're-repeat': 'expr-lang',
340 're-splice': 'expr-lang',
341 'read': 'builtin-cmd',
342 'readarray': 'builtin-cmd',
343 'readonly': 'osh-assign',
344 'redir-desc': 'cmd-lang',
345 'redir-file': 'cmd-lang',
346 'regex': 'mini-lang',
347 'remove': 'type-method',
348 'renderPrompt': 'plugin',
349 'repeat': 'stdlib',
350 'replace': 'type-method',
351 'rest': 'stdlib',
352 'return': 'cmd-lang',
353 'reverse': 'type-method',
354 'round': 'stdlib',
355 'runes': 'builtin-func',
356 'runproc': 'builtin-cmd',
357 'search': 'type-method',
358 'semicolon': 'cmd-lang',
359 'set': 'builtin-cmd',
360 'setValue': 'type-method',
361 'setVar': 'builtin-func',
362 'setglobal': 'ysh-cmd',
363 'setvar': 'ysh-cmd',
364 'sh-append': 'osh-assign',
365 'sh-arith': 'mini-lang',
366 'sh-array': 'osh-assign',
367 'sh-assign': 'osh-assign',
368 'sh-assoc': 'osh-assign',
369 'sh-bitwise': 'mini-lang',
370 'sh-block': 'cmd-lang',
371 'sh-func': 'cmd-lang',
372 'sh-logical': 'mini-lang',
373 'sh-numbers': 'mini-lang',
374 'shSplit': 'builtin-func',
375 'sha1dc': 'builtin-func',
376 'sha256': 'builtin-func',
377 'shift': 'osh-assign',
378 'shopt': 'builtin-cmd',
379 'shvar': 'builtin-cmd',
380 'shvarGet': 'builtin-func',
381 'sigpipe_status_ok': 'option',
382 'simple-command': 'cmd-lang',
383 'source': 'builtin-cmd',
384 'source-guard': 'builtin-cmd',
385 'split': 'type-method',
386 'start': 'type-method',
387 'startsWith': 'type-method',
388 'startup': 'front-end',
389 'stdin': 'type-method',
390 'str': 'builtin-func',
391 'str-template': 'expr-lang',
392 'strcmp': 'builtin-func',
393 'strftime': 'type-method',
394 'strict:all': 'option',
395 'strict_control_flow': 'option',
396 'strict_nameref': 'option',
397 'strict_tilde': 'option',
398 'subshell': 'cmd-lang',
399 'sum': 'stdlib',
400 'surrogate-pair': 'j8',
401 'tagged-str': 'word-lang',
402 'task-five': 'stdlib',
403 'test': 'builtin-cmd',
404 'thin-arrow': 'expr-lang',
405 'tilde-sub': 'word-lang',
406 'time': 'type-method',
407 'times': 'builtin-cmd',
408 'toJson': 'builtin-func',
409 'toJson8': 'builtin-func',
410 'trap': 'builtin-cmd',
411 'trim': 'type-method',
412 'trimEnd': 'type-method',
413 'trimStart': 'type-method',
414 'triple-quoted': 'word-lang',
415 'true': 'index',
416 'try': 'builtin-cmd',
417 'type': 'index',
418 'typed-arg': 'cmd-lang',
419 'typeset': 'osh-assign',
420 'u-prefix': 'j8',
421 'ulimit': 'builtin-cmd',
422 'umask': 'builtin-cmd',
423 'unalias': 'builtin-cmd',
424 'unquoted-line': 'j8',
425 'unset': 'osh-assign',
426 'until': 'cmd-lang',
427 'upper': 'type-method',
428 'use': 'builtin-cmd',
429 'values': 'builtin-func',
430 'var': 'ysh-cmd',
431 'var-splice': 'word-lang',
432 'var-sub': 'word-lang',
433 'vm': 'type-method',
434 'wait': 'builtin-cmd',
435 'while': 'cmd-lang',
436 'write': 'builtin-cmd',
437 'yb-capture': 'stdlib',
438 'yb-capture-2': 'stdlib',
439 'ysh-arith': 'expr-lang',
440 'ysh-attr': 'expr-lang',
441 'ysh-bitwise': 'expr-lang',
442 'ysh-case': 'cmd-lang',
443 'ysh-cd': 'builtin-cmd',
444 'ysh-chapters': None,
445 'ysh-compare': 'expr-lang',
446 'ysh-echo': 'builtin-cmd',
447 'ysh-equals': 'expr-lang',
448 'ysh-for': 'cmd-lang',
449 'ysh-format': 'word-lang',
450 'ysh-func-call': 'expr-lang',
451 'ysh-here-str': 'cmd-lang',
452 'ysh-if': 'cmd-lang',
453 'ysh-in': 'expr-lang',
454 'ysh-index': 'expr-lang',
455 'ysh-logical': 'expr-lang',
456 'ysh-prefix-binding': 'cmd-lang',
457 'ysh-printf': 'word-lang',
458 'ysh-read': 'builtin-cmd',
459 'ysh-return': 'ysh-cmd',
460 'ysh-shopt': 'builtin-cmd',
461 'ysh-slice': 'expr-lang',
462 'ysh-string': 'word-lang',
463 'ysh-ternary': 'expr-lang',
464 'ysh-test': 'builtin-cmd',
465 'ysh-usage': None,
466 'ysh-while': 'cmd-lang',
467 'ysh:all': 'option',
468 'ysh:upgrade': 'option'}
469
470
471from typing import Dict
472
473def TopicMetadata():
474 # type: () -> Dict[str, str]
475 return TOPICS