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

414 lines, 410 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 'CDPATH': 'special-var',
13 'COMPREPLY': 'special-var',
14 'COMP_ARGV': 'special-var',
15 'COMP_CWORD': 'special-var',
16 'COMP_LINE': 'special-var',
17 'COMP_POINT': 'special-var',
18 'COMP_WORDBREAKS': 'special-var',
19 'COMP_WORDS': 'special-var',
20 'Command': 'type-method',
21 'DEBUG': 'plugin',
22 'ENV': 'special-var',
23 'ERR': 'plugin',
24 'EUID': 'special-var',
25 'EXIT': 'plugin',
26 'Expr': 'type-method',
27 'FUNCNAME': 'special-var',
28 'Float': 'type-method',
29 'GLOBIGNORE': 'special-var',
30 'HISTFILE': 'special-var',
31 'HOME': 'special-var',
32 'HOSTNAME': 'special-var',
33 'IFS': 'special-var',
34 'Int': 'type-method',
35 'LANG': 'special-var',
36 'LINENO': 'special-var',
37 'List/append': 'type-method',
38 'Null': 'type-method',
39 'OILS_GC_ON_EXIT': 'special-var',
40 'OILS_GC_STATS': 'special-var',
41 'OILS_GC_STATS_FD': 'special-var',
42 'OILS_GC_THRESHOLD': 'special-var',
43 'OILS_VERSION': 'special-var',
44 'OLDPWD': 'special-var',
45 'OPTARG': 'special-var',
46 'OPTERR': 'special-var',
47 'OPTIND': 'special-var',
48 'OSTYPE': 'special-var',
49 'PATH': 'special-var',
50 'PIPESTATUS': 'special-var',
51 'PPID': 'special-var',
52 'PROMPT_COMMAND': 'plugin',
53 'PS1': 'plugin',
54 'PS2': 'plugin',
55 'PS3': 'plugin',
56 'PS4': 'plugin',
57 'PWD': 'special-var',
58 'RANDOM': 'special-var',
59 'REPLY': 'special-var',
60 'RETURN': 'plugin',
61 'SECONDS': 'special-var',
62 'SHELLOPTS': 'special-var',
63 'SHX_indent': 'special-var',
64 'SHX_pid_str': 'special-var',
65 'SHX_punct': 'special-var',
66 'SIGINT': 'plugin',
67 'SIGQUIT': 'plugin',
68 'SIGTERM': 'plugin',
69 'SIGTTIN': 'plugin',
70 'SIGTTOU': 'plugin',
71 'SIGWINCH': 'plugin',
72 'UID': 'special-var',
73 'YSH_HISTFILE': 'special-var',
74 '_end': 'builtin-func',
75 '_error': 'special-var',
76 '_group': 'builtin-func',
77 '_pipeline_status': 'special-var',
78 '_process_sub_status': 'special-var',
79 '_reply': 'special-var',
80 '_start': 'builtin-func',
81 '_status': 'special-var',
82 '_this_dir': 'special-var',
83 'abs': 'builtin-func',
84 'accum': 'type-method',
85 'alias': 'builtin-cmd',
86 'all': 'builtin-func',
87 'ampersand': 'cmd-lang',
88 'and': 'cmd-lang',
89 'any': 'builtin-func',
90 'append': 'index',
91 'arg': 'builtin-cmd',
92 'arith-context': 'mini-lang',
93 'arith-sub': 'word-lang',
94 'ascii-control-chars': 'front-end',
95 'ascii-whitespace': 'front-end',
96 'assign': 'expr-lang',
97 'atom-literal': 'expr-lang',
98 'aug-assign': 'expr-lang',
99 'b-prefix': 'j8',
100 'bang': 'cmd-lang',
101 'block-arg': 'cmd-lang',
102 'block-expr': 'expr-lang',
103 'bool': 'builtin-func',
104 'bool-expr': 'mini-lang',
105 'bool-infix': 'mini-lang',
106 'bool-other': 'mini-lang',
107 'bool-path': 'mini-lang',
108 'bool-str': 'mini-lang',
109 'boolstatus': 'builtin-cmd',
110 'braces': 'mini-lang',
111 'break': 'cmd-lang',
112 'builtin': 'builtin-cmd',
113 'bytes': 'builtin-func',
114 'call': 'ysh-cmd',
115 'captureStdout': 'type-method',
116 'case': 'cmd-lang',
117 'cat-em': 'front-end',
118 'cd': 'builtin-cmd',
119 'char-escapes': 'mini-lang',
120 'class-literal': 'expr-lang',
121 'cmd/append': 'builtin-cmd',
122 'cmd/type': 'builtin-cmd',
123 'colon': 'cmd-lang',
124 'column-attrs': 'j8',
125 'column-types': 'j8',
126 'command': 'builtin-cmd',
127 'command-sub': 'word-lang',
128 'comment': 'front-end',
129 'compadjust': 'builtin-cmd',
130 'compexport': 'builtin-cmd',
131 'compgen': 'builtin-cmd',
132 'complete': 'plugin',
133 'compopt': 'builtin-cmd',
134 'concat': 'expr-lang',
135 'config': 'front-end',
136 'const': 'ysh-cmd',
137 'continue': 'cmd-lang',
138 'ctx': 'builtin-cmd',
139 'dashglob': 'option',
140 'dbracket': 'cmd-lang',
141 'declare': 'osh-assign',
142 'dict': 'builtin-func',
143 'dict-literal': 'expr-lang',
144 'dirs': 'builtin-cmd',
145 'doc-comment': 'front-end',
146 'dparen': 'cmd-lang',
147 'echo': 'builtin-cmd',
148 'enable': 'builtin-cmd',
149 'encodeBytes': 'builtin-func',
150 'encodeRunes': 'builtin-func',
151 'end': 'type-method',
152 'endsWith': 'type-method',
153 'equal': 'ysh-cmd',
154 'erase': 'type-method',
155 'err-j8-lines-decode': 'errors',
156 'err-j8-lines-encode': 'errors',
157 'err-j8-str-decode': 'errors',
158 'err-j8-str-encode': 'errors',
159 'err-json-decode': 'errors',
160 'err-json-encode': 'errors',
161 'err-json8-decode': 'errors',
162 'err-json8-encode': 'errors',
163 'err-utf8-decode': 'errors',
164 'err-utf8-encode': 'errors',
165 'error': 'builtin-cmd',
166 'eval': 'type-method',
167 'evalExpr': 'builtin-func',
168 'evalHay': 'builtin-func',
169 'eval_unsafe_arith': 'option',
170 'exec': 'builtin-cmd',
171 'exit': 'cmd-lang',
172 'exit-codes': 'front-end',
173 'export': 'osh-assign',
174 'expr-literal': 'expr-lang',
175 'expr-splice': 'word-lang',
176 'expr-sub': 'word-lang',
177 'extend': 'type-method',
178 'extglob': 'mini-lang',
179 'failed': 'builtin-cmd',
180 'false': 'cmd-lang',
181 'fat-arrow': 'expr-lang',
182 'fg': 'builtin-cmd',
183 'find': 'type-method',
184 'flag': 'builtin-cmd',
185 'float': 'builtin-func',
186 'float-lit': 'expr-lang',
187 'fopen': 'builtin-cmd',
188 'for': 'cmd-lang',
189 'for-expr-sh': 'cmd-lang',
190 'fork': 'builtin-cmd',
191 'forkwait': 'builtin-cmd',
192 'fromJson': 'builtin-func',
193 'fromJson8': 'builtin-func',
194 'func': 'ysh-cmd',
195 'func-call': 'expr-lang',
196 'func/type': 'builtin-func',
197 'get': 'type-method',
198 'getVar': 'builtin-func',
199 'getopts': 'builtin-cmd',
200 'glob': 'type-method',
201 'glob-pat': 'mini-lang',
202 'group': 'type-method',
203 'hash': 'builtin-cmd',
204 'hay': 'builtin-cmd',
205 'haynode': 'builtin-cmd',
206 'help': None,
207 'here-doc': 'cmd-lang',
208 'history': 'builtin-cmd',
209 'histsub': 'mini-lang',
210 'if': 'cmd-lang',
211 'ignore_flags_not_impl': 'option',
212 'inc': 'type-method',
213 'indexOf': 'type-method',
214 'insert': 'type-method',
215 'int': 'builtin-func',
216 'int-literal': 'expr-lang',
217 'is-main': 'builtin-cmd',
218 'j8-escape': 'j8',
219 'jobs': 'builtin-cmd',
220 'join': 'builtin-func',
221 'json': 'builtin-cmd',
222 'json-escape': 'j8',
223 'json-string': 'j8',
224 'json8': 'builtin-cmd',
225 'json8-comment': 'j8',
226 'json8-dict': 'j8',
227 'json8-list': 'j8',
228 'json8-num': 'j8',
229 'json8-str': 'j8',
230 'keys': 'type-method',
231 'kill': 'builtin-cmd',
232 'lazy-expr-arg': 'cmd-lang',
233 'leftMatch': 'type-method',
234 'len': 'builtin-func',
235 'line-continuation': 'front-end',
236 'line-editing': 'front-end',
237 'list': 'builtin-func',
238 'list-literal': 'expr-lang',
239 'local': 'osh-assign',
240 'lower': 'type-method',
241 'mapfile': 'builtin-cmd',
242 'match-ops': 'expr-lang',
243 'max': 'builtin-func',
244 'maybe': 'builtin-func',
245 'min': 'builtin-func',
246 'module': 'builtin-cmd',
247 'multiline-command': 'front-end',
248 'named-class': 'expr-lang',
249 'no-prefix': 'j8',
250 'nullglob': 'option',
251 'oils-usage': None,
252 'op-format': 'word-lang',
253 'op-index': 'word-lang',
254 'op-precedence': 'expr-lang',
255 'op-replace': 'word-lang',
256 'op-slice': 'word-lang',
257 'op-strip': 'word-lang',
258 'op-test': 'word-lang',
259 'opts-internal': 'option',
260 'opts-redefine': 'option',
261 'or': 'cmd-lang',
262 'osh-chapters': None,
263 'osh-string': 'word-lang',
264 'osh-usage': None,
265 'parseArgs': 'builtin-cmd',
266 'parseHay': 'builtin-func',
267 'parse_ignored': 'option',
268 'parse_triple_quote': 'option',
269 'parse_ysh_string': 'option',
270 'parser': 'builtin-cmd',
271 'pipe': 'cmd-lang',
272 'pop': 'type-method',
273 'popd': 'builtin-cmd',
274 'pp': 'builtin-cmd',
275 'printf': 'builtin-cmd',
276 'proc': 'ysh-cmd',
277 'proc-sub': 'word-lang',
278 'promptVal': 'type-method',
279 'push-registers': 'builtin-cmd',
280 'pushd': 'builtin-cmd',
281 'pwd': 'builtin-cmd',
282 'range': 'expr-lang',
283 're-capture': 'expr-lang',
284 're-compound': 'expr-lang',
285 're-flags': 'expr-lang',
286 're-literal': 'expr-lang',
287 're-multiline': 'expr-lang',
288 're-primitive': 'expr-lang',
289 're-repeat': 'expr-lang',
290 're-splice': 'expr-lang',
291 'read': 'builtin-cmd',
292 'readarray': 'builtin-cmd',
293 'readonly': 'osh-assign',
294 'redir-desc': 'cmd-lang',
295 'redir-file': 'cmd-lang',
296 'regex': 'mini-lang',
297 'remove': 'type-method',
298 'renderPrompt': 'plugin',
299 'repeat': 'builtin-func',
300 'replace': 'type-method',
301 'rest': 'builtin-cmd',
302 'return': 'cmd-lang',
303 'reverse': 'type-method',
304 'round': 'builtin-func',
305 'runes': 'builtin-func',
306 'runproc': 'builtin-cmd',
307 'search': 'type-method',
308 'semicolon': 'cmd-lang',
309 'set': 'builtin-cmd',
310 'setValue': 'type-method',
311 'setglobal': 'ysh-cmd',
312 'setvar': 'ysh-cmd',
313 'sh-append': 'osh-assign',
314 'sh-arith': 'mini-lang',
315 'sh-array': 'osh-assign',
316 'sh-assign': 'osh-assign',
317 'sh-assoc': 'osh-assign',
318 'sh-bitwise': 'mini-lang',
319 'sh-block': 'cmd-lang',
320 'sh-func': 'cmd-lang',
321 'sh-logical': 'mini-lang',
322 'sh-numbers': 'mini-lang',
323 'shSplit': 'builtin-func',
324 'sha1dc': 'builtin-func',
325 'sha256': 'builtin-func',
326 'shift': 'osh-assign',
327 'shopt': 'builtin-cmd',
328 'shvar': 'builtin-cmd',
329 'shvarGet': 'builtin-func',
330 'sigpipe_status_ok': 'option',
331 'simple-command': 'cmd-lang',
332 'source': 'builtin-cmd',
333 'split': 'builtin-func',
334 'start': 'type-method',
335 'startsWith': 'type-method',
336 'startup': 'front-end',
337 'str': 'builtin-func',
338 'str-template': 'expr-lang',
339 'strcmp': 'builtin-func',
340 'strftime': 'type-method',
341 'strict:all': 'option',
342 'strict_control_flow': 'option',
343 'strict_nameref': 'option',
344 'strict_tilde': 'option',
345 'subshell': 'cmd-lang',
346 'sum': 'builtin-func',
347 'surrogate-pair': 'j8',
348 'tagged-str': 'word-lang',
349 'test': 'builtin-cmd',
350 'thin-arrow': 'expr-lang',
351 'tilde-sub': 'word-lang',
352 'time': 'type-method',
353 'times': 'builtin-cmd',
354 'toJson': 'builtin-func',
355 'toJson8': 'builtin-func',
356 'trap': 'builtin-cmd',
357 'trim': 'type-method',
358 'trimEnd': 'type-method',
359 'trimStart': 'type-method',
360 'triple-quoted': 'word-lang',
361 'true': 'cmd-lang',
362 'try': 'builtin-cmd',
363 'type': 'index',
364 'typed-arg': 'cmd-lang',
365 'typeset': 'osh-assign',
366 'u-prefix': 'j8',
367 'ulimit': 'builtin-cmd',
368 'umask': 'builtin-cmd',
369 'unalias': 'builtin-cmd',
370 'unquoted-line': 'j8',
371 'unset': 'osh-assign',
372 'until': 'cmd-lang',
373 'upper': 'type-method',
374 'use': 'builtin-cmd',
375 'values': 'type-method',
376 'var': 'ysh-cmd',
377 'var-splice': 'word-lang',
378 'var-sub': 'word-lang',
379 'wait': 'builtin-cmd',
380 'while': 'cmd-lang',
381 'write': 'builtin-cmd',
382 'ysh-arith': 'expr-lang',
383 'ysh-attr': 'expr-lang',
384 'ysh-bitwise': 'expr-lang',
385 'ysh-case': 'cmd-lang',
386 'ysh-cd': 'builtin-cmd',
387 'ysh-chapters': None,
388 'ysh-compare': 'expr-lang',
389 'ysh-echo': 'builtin-cmd',
390 'ysh-equals': 'expr-lang',
391 'ysh-for': 'cmd-lang',
392 'ysh-format': 'word-lang',
393 'ysh-if': 'cmd-lang',
394 'ysh-in': 'expr-lang',
395 'ysh-index': 'expr-lang',
396 'ysh-logical': 'expr-lang',
397 'ysh-printf': 'word-lang',
398 'ysh-read': 'builtin-cmd',
399 'ysh-return': 'ysh-cmd',
400 'ysh-shopt': 'builtin-cmd',
401 'ysh-slice': 'expr-lang',
402 'ysh-string': 'word-lang',
403 'ysh-ternary': 'expr-lang',
404 'ysh-usage': None,
405 'ysh-while': 'cmd-lang',
406 'ysh:all': 'option',
407 'ysh:upgrade': 'option'}
408
409
410from typing import Dict
411
412def TopicMetadata():
413 # type: () -> Dict[str, str]
414 return TOPICS