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

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