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

411 lines, 407 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 'call': 'ysh-cmd',
114 'captureStdout': 'type-method',
115 'case': 'cmd-lang',
116 'cat-em': 'front-end',
117 'cd': 'builtin-cmd',
118 'char-escapes': 'mini-lang',
119 'chr': 'builtin-func',
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 'end': 'type-method',
150 'endsWith': 'type-method',
151 'equal': 'ysh-cmd',
152 'erase': 'type-method',
153 'err-j8-lines-decode': 'errors',
154 'err-j8-lines-encode': 'errors',
155 'err-j8-str-decode': 'errors',
156 'err-j8-str-encode': 'errors',
157 'err-json-decode': 'errors',
158 'err-json-encode': 'errors',
159 'err-json8-decode': 'errors',
160 'err-json8-encode': 'errors',
161 'err-utf8-decode': 'errors',
162 'err-utf8-encode': 'errors',
163 'error': 'builtin-cmd',
164 'eval': 'type-method',
165 'evalExpr': 'builtin-func',
166 'evalHay': 'builtin-func',
167 'eval_unsafe_arith': 'option',
168 'exec': 'builtin-cmd',
169 'exit': 'cmd-lang',
170 'exit-codes': 'front-end',
171 'export': 'osh-assign',
172 'expr-literal': 'expr-lang',
173 'expr-splice': 'word-lang',
174 'expr-sub': 'word-lang',
175 'extend': 'type-method',
176 'extglob': 'mini-lang',
177 'false': 'cmd-lang',
178 'fat-arrow': 'expr-lang',
179 'fg': 'builtin-cmd',
180 'find': 'type-method',
181 'flag': 'builtin-cmd',
182 'float': 'builtin-func',
183 'float-lit': 'expr-lang',
184 'fopen': 'builtin-cmd',
185 'for': 'cmd-lang',
186 'for-expr-sh': 'cmd-lang',
187 'fork': 'builtin-cmd',
188 'forkwait': 'builtin-cmd',
189 'fromJson': 'builtin-func',
190 'fromJson8': 'builtin-func',
191 'func': 'ysh-cmd',
192 'func-call': 'expr-lang',
193 'func/type': 'builtin-func',
194 'get': 'type-method',
195 'getVar': 'builtin-func',
196 'getopts': 'builtin-cmd',
197 'glob': 'type-method',
198 'glob-pat': 'mini-lang',
199 'group': 'type-method',
200 'hash': 'builtin-cmd',
201 'hay': 'builtin-cmd',
202 'haynode': 'builtin-cmd',
203 'help': None,
204 'here-doc': 'cmd-lang',
205 'history': 'builtin-cmd',
206 'histsub': 'mini-lang',
207 'if': 'cmd-lang',
208 'inc': 'type-method',
209 'indexOf': 'type-method',
210 'insert': 'type-method',
211 'int': 'builtin-func',
212 'int-literal': 'expr-lang',
213 'is-main': 'builtin-cmd',
214 'j8-escape': 'j8',
215 'jobs': 'builtin-cmd',
216 'join': 'builtin-func',
217 'json': 'builtin-cmd',
218 'json-escape': 'j8',
219 'json-string': 'j8',
220 'json8': 'builtin-cmd',
221 'json8-comment': 'j8',
222 'json8-dict': 'j8',
223 'json8-list': 'j8',
224 'json8-num': 'j8',
225 'json8-str': 'j8',
226 'keys': 'type-method',
227 'kill': 'builtin-cmd',
228 'lazy-expr-arg': 'cmd-lang',
229 'leftMatch': 'type-method',
230 'len': 'builtin-func',
231 'line-continuation': 'front-end',
232 'line-editing': 'front-end',
233 'list': 'builtin-func',
234 'list-literal': 'expr-lang',
235 'local': 'osh-assign',
236 'lower': 'type-method',
237 'mapfile': 'builtin-cmd',
238 'match-ops': 'expr-lang',
239 'max': 'builtin-func',
240 'maybe': 'builtin-func',
241 'min': 'builtin-func',
242 'module': 'builtin-cmd',
243 'multiline-command': 'front-end',
244 'named-class': 'expr-lang',
245 'no-prefix': 'j8',
246 'nullglob': 'option',
247 'oils-usage': None,
248 'op-format': 'word-lang',
249 'op-index': 'word-lang',
250 'op-precedence': 'expr-lang',
251 'op-replace': 'word-lang',
252 'op-slice': 'word-lang',
253 'op-strip': 'word-lang',
254 'op-test': 'word-lang',
255 'opts-internal': 'option',
256 'opts-redefine': 'option',
257 'or': 'cmd-lang',
258 'ord': 'builtin-func',
259 'osh-chapters': None,
260 'osh-string': 'word-lang',
261 'osh-usage': None,
262 'parseArgs': 'builtin-cmd',
263 'parseHay': 'builtin-func',
264 'parse_ignored': 'option',
265 'parse_triple_quote': 'option',
266 'parse_ysh_string': 'option',
267 'parser': 'builtin-cmd',
268 'pipe': 'cmd-lang',
269 'pop': 'type-method',
270 'popd': 'builtin-cmd',
271 'pp': 'builtin-cmd',
272 'printf': 'builtin-cmd',
273 'proc': 'ysh-cmd',
274 'proc-sub': 'word-lang',
275 'promptVal': 'type-method',
276 'push-registers': 'builtin-cmd',
277 'pushd': 'builtin-cmd',
278 'pwd': 'builtin-cmd',
279 'range': 'expr-lang',
280 're-capture': 'expr-lang',
281 're-compound': 'expr-lang',
282 're-flags': 'expr-lang',
283 're-literal': 'expr-lang',
284 're-multiline': 'expr-lang',
285 're-primitive': 'expr-lang',
286 're-repeat': 'expr-lang',
287 're-splice': 'expr-lang',
288 'read': 'builtin-cmd',
289 'readarray': 'builtin-cmd',
290 'readonly': 'osh-assign',
291 'redir-desc': 'cmd-lang',
292 'redir-file': 'cmd-lang',
293 'regex': 'mini-lang',
294 'remove': 'type-method',
295 'renderPrompt': 'plugin',
296 'repeat': 'builtin-func',
297 'replace': 'type-method',
298 'rest': 'builtin-cmd',
299 'return': 'cmd-lang',
300 'reverse': 'type-method',
301 'round': 'builtin-func',
302 'runes': 'builtin-func',
303 'runproc': 'builtin-cmd',
304 'search': 'type-method',
305 'semicolon': 'cmd-lang',
306 'set': 'builtin-cmd',
307 'setValue': 'type-method',
308 'setglobal': 'ysh-cmd',
309 'setvar': 'ysh-cmd',
310 'sh-append': 'osh-assign',
311 'sh-arith': 'mini-lang',
312 'sh-array': 'osh-assign',
313 'sh-assign': 'osh-assign',
314 'sh-assoc': 'osh-assign',
315 'sh-bitwise': 'mini-lang',
316 'sh-block': 'cmd-lang',
317 'sh-func': 'cmd-lang',
318 'sh-logical': 'mini-lang',
319 'sh-numbers': 'mini-lang',
320 'shSplit': 'builtin-func',
321 'sha1dc': 'builtin-func',
322 'sha256': 'builtin-func',
323 'shift': 'osh-assign',
324 'shopt': 'builtin-cmd',
325 'shvar': 'builtin-cmd',
326 'shvarGet': 'builtin-func',
327 'sigpipe_status_ok': 'option',
328 'simple-command': 'cmd-lang',
329 'source': 'builtin-cmd',
330 'split': 'builtin-func',
331 'start': 'type-method',
332 'startsWith': 'type-method',
333 'startup': 'front-end',
334 'str': 'builtin-func',
335 'str-template': 'expr-lang',
336 'strcmp': 'builtin-func',
337 'strftime': 'type-method',
338 'strict:all': 'option',
339 'strict_control_flow': 'option',
340 'strict_nameref': 'option',
341 'strict_tilde': 'option',
342 'subshell': 'cmd-lang',
343 'sum': 'builtin-func',
344 'surrogate-pair': 'j8',
345 'tagged-str': 'word-lang',
346 'test': 'builtin-cmd',
347 'thin-arrow': 'expr-lang',
348 'tilde-sub': 'word-lang',
349 'time': 'type-method',
350 'times': 'builtin-cmd',
351 'toJson': 'builtin-func',
352 'toJson8': 'builtin-func',
353 'trap': 'builtin-cmd',
354 'trim': 'type-method',
355 'trimEnd': 'type-method',
356 'trimStart': 'type-method',
357 'triple-quoted': 'word-lang',
358 'true': 'cmd-lang',
359 'try': 'builtin-cmd',
360 'type': 'index',
361 'typed-arg': 'cmd-lang',
362 'typeset': 'osh-assign',
363 'u-prefix': 'j8',
364 'ulimit': 'builtin-cmd',
365 'umask': 'builtin-cmd',
366 'unalias': 'builtin-cmd',
367 'unquoted-line': 'j8',
368 'unset': 'osh-assign',
369 'until': 'cmd-lang',
370 'upper': 'type-method',
371 'use': 'builtin-cmd',
372 'values': 'type-method',
373 'var': 'ysh-cmd',
374 'var-splice': 'word-lang',
375 'var-sub': 'word-lang',
376 'wait': 'builtin-cmd',
377 'while': 'cmd-lang',
378 'write': 'builtin-cmd',
379 'ysh-arith': 'expr-lang',
380 'ysh-attr': 'expr-lang',
381 'ysh-bitwise': 'expr-lang',
382 'ysh-case': 'cmd-lang',
383 'ysh-cd': 'builtin-cmd',
384 'ysh-chapters': None,
385 'ysh-compare': 'expr-lang',
386 'ysh-echo': 'builtin-cmd',
387 'ysh-equals': 'expr-lang',
388 'ysh-for': 'cmd-lang',
389 'ysh-format': 'word-lang',
390 'ysh-if': 'cmd-lang',
391 'ysh-in': 'expr-lang',
392 'ysh-index': 'expr-lang',
393 'ysh-logical': 'expr-lang',
394 'ysh-printf': 'word-lang',
395 'ysh-read': 'builtin-cmd',
396 'ysh-return': 'ysh-cmd',
397 'ysh-shopt': 'builtin-cmd',
398 'ysh-slice': 'expr-lang',
399 'ysh-string': 'word-lang',
400 'ysh-ternary': 'expr-lang',
401 'ysh-usage': None,
402 'ysh-while': 'cmd-lang',
403 'ysh:all': 'option',
404 'ysh:upgrade': 'option'}
405
406
407from typing import Dict
408
409def TopicMetadata():
410 # type: () -> Dict[str, str]
411 return TOPICS