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

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