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