OILS / _devbuild / gen / help_meta.py View on Github | oils.pub

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