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

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