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

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