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

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