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

488 lines, 484 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 'lines': 'type-method',
285 'list': 'builtin-func',
286 'list-literal': 'expr-lang',
287 'local': 'osh-assign',
288 'log': 'stdlib',
289 'lower': 'type-method',
290 'mapfile': 'builtin-cmd',
291 'match-ops': 'expr-lang',
292 'max': 'stdlib',
293 'maybe': 'builtin-func',
294 'min': 'stdlib',
295 'multiline-command': 'front-end',
296 'named-class': 'expr-lang',
297 'new': 'type-method',
298 'no-prefix': 'j8',
299 'nq-assert': 'stdlib',
300 'nq-capture': 'stdlib',
301 'nq-capture-2': 'stdlib',
302 'nq-redir': 'stdlib',
303 'nq-redir-2': 'stdlib',
304 'nq-run': 'stdlib',
305 'null': 'type-method',
306 'nullglob': 'option',
307 'oils-usage': None,
308 'op-bracket': 'word-lang',
309 'op-format': 'word-lang',
310 'op-indirect': 'word-lang',
311 'op-patsub': 'word-lang',
312 'op-precedence': 'expr-lang',
313 'op-slice': 'word-lang',
314 'op-strip': 'word-lang',
315 'op-test': 'word-lang',
316 'opts-internal': 'option',
317 'opts-redefine': 'option',
318 'or': 'cmd-lang',
319 'osh-chapters': None,
320 'osh-string': 'word-lang',
321 'osh-usage': None,
322 'parseArgs': 'stdlib',
323 'parseCommand': 'builtin-func',
324 'parseExpr': 'builtin-func',
325 'parseHay': 'builtin-func',
326 'parse_ignored': 'option',
327 'parse_triple_quote': 'option',
328 'parse_ysh_string': 'option',
329 'parser': 'stdlib',
330 'pipe': 'cmd-lang',
331 'pop': 'type-method',
332 'popd': 'builtin-cmd',
333 'pp': 'builtin-cmd',
334 'prefix-binding': 'cmd-lang',
335 'printf': 'builtin-cmd',
336 'proc': 'ysh-cmd',
337 'proc-sub': 'word-lang',
338 'promptVal': 'type-method',
339 'push-registers': 'builtin-cmd',
340 'pushd': 'builtin-cmd',
341 'pwd': 'builtin-cmd',
342 'range': 'expr-lang',
343 're-capture': 'expr-lang',
344 're-compound': 'expr-lang',
345 're-flags': 'expr-lang',
346 're-literal': 'expr-lang',
347 're-multiline': 'expr-lang',
348 're-primitive': 'expr-lang',
349 're-repeat': 'expr-lang',
350 're-splice': 'expr-lang',
351 'read': 'builtin-cmd',
352 'readarray': 'builtin-cmd',
353 'readonly': 'osh-assign',
354 'redir-desc': 'cmd-lang',
355 'redir-file': 'cmd-lang',
356 'regex': 'mini-lang',
357 'remove': 'type-method',
358 'renderPrompt': 'plugin',
359 'repeat': 'stdlib',
360 'replace': 'type-method',
361 'rest': 'stdlib',
362 'return': 'cmd-lang',
363 'reverse': 'type-method',
364 'round': 'stdlib',
365 'runes': 'builtin-func',
366 'runproc': 'builtin-cmd',
367 'search': 'type-method',
368 'semicolon': 'cmd-lang',
369 'set': 'builtin-cmd',
370 'setValue': 'type-method',
371 'setVar': 'builtin-func',
372 'setglobal': 'ysh-cmd',
373 'setvar': 'ysh-cmd',
374 'sh-append': 'osh-assign',
375 'sh-arith': 'mini-lang',
376 'sh-array': 'osh-assign',
377 'sh-assign': 'osh-assign',
378 'sh-assoc': 'osh-assign',
379 'sh-bitwise': 'mini-lang',
380 'sh-block': 'cmd-lang',
381 'sh-func': 'cmd-lang',
382 'sh-logical': 'mini-lang',
383 'sh-numbers': 'mini-lang',
384 'shSplit': 'builtin-func',
385 'sha1dc': 'builtin-func',
386 'sha256': 'builtin-func',
387 'shift': 'osh-assign',
388 'shopt': 'builtin-cmd',
389 'shvar': 'builtin-cmd',
390 'shvarGet': 'builtin-func',
391 'sigpipe_status_ok': 'option',
392 'simple-command': 'cmd-lang',
393 'source': 'builtin-cmd',
394 'source-guard': 'builtin-cmd',
395 'split': 'type-method',
396 'start': 'type-method',
397 'startsWith': 'type-method',
398 'startup': 'front-end',
399 'stdin': 'type-method',
400 'str': 'builtin-func',
401 'str-template': 'expr-lang',
402 'strcmp': 'builtin-func',
403 'strftime': 'type-method',
404 'strict:all': 'option',
405 'strict_control_flow': 'option',
406 'strict_nameref': 'option',
407 'strict_tilde': 'option',
408 'subshell': 'cmd-lang',
409 'sum': 'stdlib',
410 'surrogate-pair': 'j8',
411 'tagged-str': 'word-lang',
412 'task-five': 'stdlib',
413 'test': 'builtin-cmd',
414 'thin-arrow': 'expr-lang',
415 'tilde-sub': 'word-lang',
416 'time': 'type-method',
417 'times': 'builtin-cmd',
418 'toJson': 'builtin-func',
419 'toJson8': 'builtin-func',
420 'toString': 'type-method',
421 'trap': 'builtin-cmd',
422 'trim': 'type-method',
423 'trimEnd': 'type-method',
424 'trimStart': 'type-method',
425 'triple-quoted': 'word-lang',
426 'true': 'index',
427 'try': 'builtin-cmd',
428 'type': 'index',
429 'typed-arg': 'cmd-lang',
430 'typeset': 'osh-assign',
431 'u-prefix': 'j8',
432 'ulimit': 'builtin-cmd',
433 'umask': 'builtin-cmd',
434 'unalias': 'builtin-cmd',
435 'unquoted-line': 'j8',
436 'unset': 'osh-assign',
437 'until': 'cmd-lang',
438 'upper': 'type-method',
439 'use': 'builtin-cmd',
440 'values': 'builtin-func',
441 'var': 'ysh-cmd',
442 'var-splice': 'word-lang',
443 'var-sub': 'word-lang',
444 'verbose': 'option',
445 'vm': 'type-method',
446 'wait': 'builtin-cmd',
447 'while': 'cmd-lang',
448 'write': 'builtin-cmd',
449 'xtrace': 'option',
450 'yb-capture': 'stdlib',
451 'yb-capture-2': 'stdlib',
452 'ysh-arith': 'expr-lang',
453 'ysh-attr': 'expr-lang',
454 'ysh-bitwise': 'expr-lang',
455 'ysh-case': 'cmd-lang',
456 'ysh-cd': 'builtin-cmd',
457 'ysh-chapters': None,
458 'ysh-compare': 'expr-lang',
459 'ysh-echo': 'builtin-cmd',
460 'ysh-equals': 'expr-lang',
461 'ysh-for': 'cmd-lang',
462 'ysh-format': 'word-lang',
463 'ysh-func-call': 'expr-lang',
464 'ysh-here-str': 'cmd-lang',
465 'ysh-if': 'cmd-lang',
466 'ysh-in': 'expr-lang',
467 'ysh-index': 'expr-lang',
468 'ysh-logical': 'expr-lang',
469 'ysh-prefix-binding': 'cmd-lang',
470 'ysh-printf': 'word-lang',
471 'ysh-read': 'builtin-cmd',
472 'ysh-return': 'ysh-cmd',
473 'ysh-shopt': 'builtin-cmd',
474 'ysh-slice': 'expr-lang',
475 'ysh-string': 'word-lang',
476 'ysh-ternary': 'expr-lang',
477 'ysh-test': 'builtin-cmd',
478 'ysh-usage': None,
479 'ysh-while': 'cmd-lang',
480 'ysh:all': 'option',
481 'ysh:upgrade': 'option'}
482
483
484from typing import Dict
485
486def TopicMetadata():
487 # type: () -> Dict[str, str]
488 return TOPICS