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

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