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

410 lines, 406 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 'LIB_OSH': 'special-var',
37 'LINENO': 'special-var',
38 'List/append': 'type-method',
39 'Null': 'type-method',
40 'OILS_GC_ON_EXIT': 'special-var',
41 'OILS_GC_STATS': 'special-var',
42 'OILS_GC_STATS_FD': 'special-var',
43 'OILS_GC_THRESHOLD': 'special-var',
44 'OILS_VERSION': 'special-var',
45 'OLDPWD': 'special-var',
46 'OPTARG': 'special-var',
47 'OPTERR': 'special-var',
48 'OPTIND': 'special-var',
49 'OSTYPE': 'special-var',
50 'PATH': 'special-var',
51 'PIPESTATUS': 'special-var',
52 'PPID': 'special-var',
53 'PROMPT_COMMAND': 'plugin',
54 'PS1': 'plugin',
55 'PS2': 'plugin',
56 'PS3': 'plugin',
57 'PS4': 'plugin',
58 'PWD': 'special-var',
59 'RANDOM': 'special-var',
60 'REPLY': 'special-var',
61 'RETURN': 'plugin',
62 'SECONDS': 'special-var',
63 'SHELLOPTS': 'special-var',
64 'SHX_indent': 'special-var',
65 'SHX_pid_str': 'special-var',
66 'SHX_punct': 'special-var',
67 'SIGINT': 'plugin',
68 'SIGQUIT': 'plugin',
69 'SIGTERM': 'plugin',
70 'SIGTTIN': 'plugin',
71 'SIGTTOU': 'plugin',
72 'SIGWINCH': 'plugin',
73 'UID': 'special-var',
74 'YSH_HISTFILE': 'special-var',
75 '_end': 'builtin-func',
76 '_error': 'special-var',
77 '_group': 'builtin-func',
78 '_pipeline_status': 'special-var',
79 '_process_sub_status': 'special-var',
80 '_reply': 'special-var',
81 '_start': 'builtin-func',
82 '_status': 'special-var',
83 '_this_dir': 'special-var',
84 'abs': 'builtin-func',
85 'accum': 'type-method',
86 'alias': 'builtin-cmd',
87 'all': 'builtin-func',
88 'ampersand': 'cmd-lang',
89 'and': 'cmd-lang',
90 'any': 'builtin-func',
91 'append': 'index',
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 'float': 'builtin-func',
185 'float-lit': 'expr-lang',
186 'fopen': 'builtin-cmd',
187 'for': 'cmd-lang',
188 'for-expr-sh': 'cmd-lang',
189 'fork': 'builtin-cmd',
190 'forkwait': 'builtin-cmd',
191 'fromJson': 'builtin-func',
192 'fromJson8': 'builtin-func',
193 'func': 'ysh-cmd',
194 'func-call': 'expr-lang',
195 'func/type': 'builtin-func',
196 'get': 'type-method',
197 'getVar': 'builtin-func',
198 'getopts': 'builtin-cmd',
199 'glob': 'type-method',
200 'glob-pat': 'mini-lang',
201 'group': 'type-method',
202 'hash': 'builtin-cmd',
203 'hay': 'builtin-cmd',
204 'haynode': 'builtin-cmd',
205 'help': None,
206 'here-doc': 'cmd-lang',
207 'history': 'builtin-cmd',
208 'histsub': 'mini-lang',
209 'if': 'cmd-lang',
210 'ignore_flags_not_impl': 'option',
211 'inc': 'type-method',
212 'indexOf': 'type-method',
213 'insert': 'type-method',
214 'int': 'builtin-func',
215 'int-literal': 'expr-lang',
216 'is-main': 'builtin-cmd',
217 'j8-escape': 'j8',
218 'jobs': 'builtin-cmd',
219 'join': 'builtin-func',
220 'json': 'builtin-cmd',
221 'json-escape': 'j8',
222 'json-string': 'j8',
223 'json8': 'builtin-cmd',
224 'json8-comment': 'j8',
225 'json8-dict': 'j8',
226 'json8-list': 'j8',
227 'json8-num': 'j8',
228 'json8-str': 'j8',
229 'keys': 'type-method',
230 'kill': 'builtin-cmd',
231 'lazy-expr-arg': 'cmd-lang',
232 'leftMatch': 'type-method',
233 'len': 'builtin-func',
234 'line-continuation': 'front-end',
235 'line-editing': 'front-end',
236 'list': 'builtin-func',
237 'list-literal': 'expr-lang',
238 'local': 'osh-assign',
239 'lower': 'type-method',
240 'mapfile': 'builtin-cmd',
241 'match-ops': 'expr-lang',
242 'max': 'builtin-func',
243 'maybe': 'builtin-func',
244 'min': 'builtin-func',
245 'module': 'builtin-cmd',
246 'multiline-command': 'front-end',
247 'named-class': 'expr-lang',
248 'no-prefix': 'j8',
249 'nullglob': 'option',
250 'oils-usage': None,
251 'op-format': 'word-lang',
252 'op-index': 'word-lang',
253 'op-precedence': 'expr-lang',
254 'op-replace': 'word-lang',
255 'op-slice': 'word-lang',
256 'op-strip': 'word-lang',
257 'op-test': 'word-lang',
258 'opts-internal': 'option',
259 'opts-redefine': 'option',
260 'or': 'cmd-lang',
261 'osh-chapters': None,
262 'osh-string': 'word-lang',
263 'osh-usage': None,
264 'parseHay': 'builtin-func',
265 'parse_ignored': 'option',
266 'parse_triple_quote': 'option',
267 'parse_ysh_string': 'option',
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 'return': 'cmd-lang',
299 'reverse': 'type-method',
300 'round': 'builtin-func',
301 'runes': 'builtin-func',
302 'runproc': 'builtin-cmd',
303 'search': 'type-method',
304 'semicolon': 'cmd-lang',
305 'set': 'builtin-cmd',
306 'setValue': 'type-method',
307 'setglobal': 'ysh-cmd',
308 'setvar': 'ysh-cmd',
309 'sh-append': 'osh-assign',
310 'sh-arith': 'mini-lang',
311 'sh-array': 'osh-assign',
312 'sh-assign': 'osh-assign',
313 'sh-assoc': 'osh-assign',
314 'sh-bitwise': 'mini-lang',
315 'sh-block': 'cmd-lang',
316 'sh-func': 'cmd-lang',
317 'sh-logical': 'mini-lang',
318 'sh-numbers': 'mini-lang',
319 'shSplit': 'builtin-func',
320 'sha1dc': 'builtin-func',
321 'sha256': 'builtin-func',
322 'shift': 'osh-assign',
323 'shopt': 'builtin-cmd',
324 'shvar': 'builtin-cmd',
325 'shvarGet': 'builtin-func',
326 'sigpipe_status_ok': 'option',
327 'simple-command': 'cmd-lang',
328 'source': 'builtin-cmd',
329 'split': 'builtin-func',
330 'start': 'type-method',
331 'startsWith': 'type-method',
332 'startup': 'front-end',
333 'str': 'builtin-func',
334 'str-template': 'expr-lang',
335 'strcmp': 'builtin-func',
336 'strftime': 'type-method',
337 'strict:all': 'option',
338 'strict_control_flow': 'option',
339 'strict_nameref': 'option',
340 'strict_tilde': 'option',
341 'subshell': 'cmd-lang',
342 'sum': 'builtin-func',
343 'surrogate-pair': 'j8',
344 'tagged-str': 'word-lang',
345 'test': 'builtin-cmd',
346 'thin-arrow': 'expr-lang',
347 'tilde-sub': 'word-lang',
348 'time': 'type-method',
349 'times': 'builtin-cmd',
350 'toJson': 'builtin-func',
351 'toJson8': 'builtin-func',
352 'trap': 'builtin-cmd',
353 'trim': 'type-method',
354 'trimEnd': 'type-method',
355 'trimStart': 'type-method',
356 'triple-quoted': 'word-lang',
357 'true': 'cmd-lang',
358 'try': 'builtin-cmd',
359 'type': 'index',
360 'typed-arg': 'cmd-lang',
361 'typeset': 'osh-assign',
362 'u-prefix': 'j8',
363 'ulimit': 'builtin-cmd',
364 'umask': 'builtin-cmd',
365 'unalias': 'builtin-cmd',
366 'unquoted-line': 'j8',
367 'unset': 'osh-assign',
368 'until': 'cmd-lang',
369 'upper': 'type-method',
370 'use': 'builtin-cmd',
371 'values': 'type-method',
372 'var': 'ysh-cmd',
373 'var-splice': 'word-lang',
374 'var-sub': 'word-lang',
375 'wait': 'builtin-cmd',
376 'while': 'cmd-lang',
377 'write': 'builtin-cmd',
378 'ysh-arith': 'expr-lang',
379 'ysh-attr': 'expr-lang',
380 'ysh-bitwise': 'expr-lang',
381 'ysh-case': 'cmd-lang',
382 'ysh-cd': 'builtin-cmd',
383 'ysh-chapters': None,
384 'ysh-compare': 'expr-lang',
385 'ysh-echo': 'builtin-cmd',
386 'ysh-equals': 'expr-lang',
387 'ysh-for': 'cmd-lang',
388 'ysh-format': 'word-lang',
389 'ysh-if': 'cmd-lang',
390 'ysh-in': 'expr-lang',
391 'ysh-index': 'expr-lang',
392 'ysh-logical': 'expr-lang',
393 'ysh-printf': 'word-lang',
394 'ysh-read': 'builtin-cmd',
395 'ysh-return': 'ysh-cmd',
396 'ysh-shopt': 'builtin-cmd',
397 'ysh-slice': 'expr-lang',
398 'ysh-string': 'word-lang',
399 'ysh-ternary': 'expr-lang',
400 'ysh-usage': None,
401 'ysh-while': 'cmd-lang',
402 'ysh:all': 'option',
403 'ysh:upgrade': 'option'}
404
405
406from typing import Dict
407
408def TopicMetadata():
409 # type: () -> Dict[str, str]
410 return TOPICS