@enjoys/context-engine 1.3.1 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/codeActions/angular.json +126 -0
- package/data/codeActions/nestjs.json +124 -0
- package/data/codeActions/nextjs.json +198 -0
- package/data/codeActions/react.json +154 -0
- package/data/codeActions/shadcn.json +112 -0
- package/data/codeActions/shell.json +169 -26
- package/data/codeLens/angular.json +22 -0
- package/data/codeLens/nestjs.json +21 -0
- package/data/codeLens/nextjs.json +117 -0
- package/data/codeLens/react.json +89 -0
- package/data/codeLens/shadcn.json +89 -0
- package/data/codeLens/shell.json +59 -17
- package/data/codeLens/tailwindcss.json +56 -0
- package/data/color/angular.json +21 -0
- package/data/color/nestjs.json +18 -0
- package/data/color/nextjs.json +22 -0
- package/data/color/react.json +93 -0
- package/data/color/shadcn.json +66 -0
- package/data/color/shell.json +106 -80
- package/data/commands/angular.json +312 -0
- package/data/commands/manifest.json +5 -0
- package/data/commands/nestjs.json +273 -0
- package/data/commands/nextjs.json +123 -0
- package/data/commands/react.json +210 -0
- package/data/commands/shadcn.json +410 -0
- package/data/commands/shell.json +571 -41
- package/data/completion/angular.json +1490 -0
- package/data/completion/css.json +793 -0
- package/data/completion/nestjs.json +1454 -0
- package/data/completion/nextjs.json +1373 -0
- package/data/completion/react.json +1319 -0
- package/data/completion/shadcn.json +1202 -0
- package/data/completion/shell.json +2446 -510
- package/data/declaration/angular.json +46 -0
- package/data/declaration/nestjs.json +47 -0
- package/data/declaration/nextjs.json +274 -0
- package/data/declaration/react.json +199 -0
- package/data/declaration/shadcn.json +211 -0
- package/data/declaration/shell.json +343 -24
- package/data/declaration/tailwindcss.json +72 -0
- package/data/definition/angular.json +670 -0
- package/data/definition/nestjs.json +684 -0
- package/data/definition/nextjs.json +439 -0
- package/data/definition/react.json +397 -0
- package/data/definition/shadcn.json +99 -0
- package/data/definition/shell.json +820 -0
- package/data/documentHighlight/angular.json +414 -0
- package/data/documentHighlight/css.json +77 -2
- package/data/documentHighlight/nestjs.json +115 -0
- package/data/documentHighlight/nextjs.json +212 -0
- package/data/documentHighlight/react.json +119 -0
- package/data/documentHighlight/shadcn.json +168 -0
- package/data/documentHighlight/shell.json +664 -334
- package/data/documentHighlight/tailwindcss.json +105 -10
- package/data/documentRangeFormatting/angular.json +45 -0
- package/data/documentRangeFormatting/nestjs.json +17 -0
- package/data/documentRangeFormatting/nextjs.json +17 -0
- package/data/documentRangeFormatting/react.json +78 -0
- package/data/documentRangeFormatting/shadcn.json +45 -0
- package/data/documentRangeFormatting/shell.json +120 -53
- package/data/documentSymbol/angular.json +180 -0
- package/data/documentSymbol/nestjs.json +152 -0
- package/data/documentSymbol/nextjs.json +159 -0
- package/data/documentSymbol/react.json +145 -0
- package/data/documentSymbol/shadcn.json +131 -0
- package/data/documentSymbol/shell.json +166 -26
- package/data/documentSymbol/tailwindcss.json +49 -0
- package/data/foldingRange/angular.json +99 -0
- package/data/foldingRange/nestjs.json +26 -0
- package/data/foldingRange/nextjs.json +26 -0
- package/data/foldingRange/react.json +120 -0
- package/data/foldingRange/shadcn.json +93 -0
- package/data/foldingRange/shell.json +106 -46
- package/data/formatting/angular.json +21 -0
- package/data/formatting/nestjs.json +23 -0
- package/data/formatting/nextjs.json +23 -0
- package/data/formatting/react.json +71 -0
- package/data/formatting/shadcn.json +61 -0
- package/data/formatting/shell.json +103 -19
- package/data/hover/angular.json +455 -0
- package/data/hover/css.json +232 -0
- package/data/hover/nestjs.json +296 -0
- package/data/hover/nextjs.json +305 -0
- package/data/hover/react.json +173 -0
- package/data/hover/shadcn.json +450 -0
- package/data/hover/shell.json +684 -75
- package/data/implementation/angular.json +22 -0
- package/data/implementation/nestjs.json +24 -0
- package/data/implementation/nextjs.json +137 -0
- package/data/implementation/react.json +125 -0
- package/data/implementation/shadcn.json +89 -0
- package/data/implementation/shell.json +59 -3
- package/data/inlayHints/angular.json +24 -0
- package/data/inlayHints/nestjs.json +24 -0
- package/data/inlayHints/nextjs.json +143 -0
- package/data/inlayHints/react.json +177 -0
- package/data/inlayHints/shadcn.json +109 -0
- package/data/inlayHints/shell.json +223 -35
- package/data/inlineCompletions/angular.json +135 -0
- package/data/inlineCompletions/nestjs.json +25 -0
- package/data/inlineCompletions/nextjs.json +179 -0
- package/data/inlineCompletions/react.json +203 -0
- package/data/inlineCompletions/shadcn.json +115 -0
- package/data/inlineCompletions/shell.json +185 -35
- package/data/linkedEditingRange/angular.json +23 -0
- package/data/linkedEditingRange/nestjs.json +10 -0
- package/data/linkedEditingRange/nextjs.json +11 -0
- package/data/linkedEditingRange/react.json +75 -0
- package/data/linkedEditingRange/shadcn.json +23 -0
- package/data/linkedEditingRange/shell.json +25 -25
- package/data/links/angular.json +95 -0
- package/data/links/nestjs.json +130 -0
- package/data/links/nextjs.json +91 -0
- package/data/links/react.json +75 -0
- package/data/links/shadcn.json +98 -0
- package/data/links/shell.json +56 -0
- package/data/links/tailwindcss.json +25 -0
- package/data/manifest.json +339 -152
- package/data/onTypeFormatting/angular.json +14 -0
- package/data/onTypeFormatting/nestjs.json +16 -0
- package/data/onTypeFormatting/nextjs.json +17 -0
- package/data/onTypeFormatting/react.json +127 -0
- package/data/onTypeFormatting/shadcn.json +54 -0
- package/data/onTypeFormatting/shell.json +72 -68
- package/data/rangeSemanticTokens/angular.json +140 -0
- package/data/rangeSemanticTokens/nestjs.json +27 -0
- package/data/rangeSemanticTokens/nextjs.json +28 -0
- package/data/rangeSemanticTokens/react.json +216 -0
- package/data/rangeSemanticTokens/shadcn.json +140 -0
- package/data/rangeSemanticTokens/shell.json +247 -69
- package/data/rangeSemanticTokens/tailwindcss.json +99 -8
- package/data/references/angular.json +26 -0
- package/data/references/nestjs.json +24 -0
- package/data/references/nextjs.json +178 -0
- package/data/references/react.json +192 -0
- package/data/references/shadcn.json +101 -0
- package/data/references/shell.json +323 -92
- package/data/references/tailwindcss.json +66 -0
- package/data/rename/angular.json +131 -0
- package/data/rename/nestjs.json +32 -0
- package/data/rename/nextjs.json +31 -0
- package/data/rename/react.json +88 -0
- package/data/rename/shadcn.json +79 -0
- package/data/rename/shell.json +101 -31
- package/data/selectionRange/angular.json +95 -0
- package/data/selectionRange/nestjs.json +21 -0
- package/data/selectionRange/nextjs.json +22 -0
- package/data/selectionRange/react.json +87 -0
- package/data/selectionRange/shadcn.json +89 -0
- package/data/selectionRange/shell.json +65 -35
- package/data/semanticTokens/angular.json +198 -0
- package/data/semanticTokens/nestjs.json +35 -0
- package/data/semanticTokens/nextjs.json +38 -0
- package/data/semanticTokens/react.json +215 -0
- package/data/semanticTokens/shadcn.json +180 -0
- package/data/semanticTokens/shell.json +238 -65
- package/data/signatureHelp/angular.json +182 -0
- package/data/signatureHelp/nestjs.json +128 -0
- package/data/signatureHelp/nextjs.json +127 -0
- package/data/signatureHelp/react.json +281 -0
- package/data/signatureHelp/shadcn.json +237 -0
- package/data/signatureHelp/shell.json +797 -104
- package/data/typeDefinition/angular.json +362 -0
- package/data/typeDefinition/nestjs.json +334 -0
- package/data/typeDefinition/nextjs.json +285 -0
- package/data/typeDefinition/react.json +236 -0
- package/data/typeDefinition/shadcn.json +292 -0
- package/data/typeDefinition/shell.json +104 -40
- package/package.json +1 -1
- package/data/codeActions/bash.json +0 -169
- package/data/codeActions/zsh.json +0 -49
- package/data/codeLens/bash.json +0 -75
- package/data/codeLens/zsh.json +0 -19
- package/data/color/bash.json +0 -100
- package/data/color/zsh.json +0 -80
- package/data/commands/bash.json +0 -102
- package/data/commands/zsh.json +0 -166
- package/data/completion/bash.json +0 -1184
- package/data/completion/zsh.json +0 -973
- package/data/declaration/bash.json +0 -301
- package/data/declaration/zsh.json +0 -205
- package/data/definition/bash.json +0 -565
- package/data/definition/zsh.json +0 -350
- package/data/documentHighlight/bash.json +0 -393
- package/data/documentHighlight/zsh.json +0 -266
- package/data/documentRangeFormatting/bash.json +0 -41
- package/data/documentRangeFormatting/zsh.json +0 -59
- package/data/documentSymbol/bash.json +0 -124
- package/data/documentSymbol/zsh.json +0 -26
- package/data/foldingRange/bash.json +0 -76
- package/data/foldingRange/zsh.json +0 -46
- package/data/formatting/bash.json +0 -88
- package/data/formatting/zsh.json +0 -28
- package/data/hover/bash.json +0 -579
- package/data/hover/zsh.json +0 -96
- package/data/implementation/bash.json +0 -44
- package/data/implementation/zsh.json +0 -41
- package/data/inlayHints/bash.json +0 -207
- package/data/inlayHints/zsh.json +0 -43
- package/data/inlineCompletions/bash.json +0 -155
- package/data/inlineCompletions/zsh.json +0 -17
- package/data/linkedEditingRange/bash.json +0 -25
- package/data/linkedEditingRange/zsh.json +0 -25
- package/data/links/bash.json +0 -56
- package/data/links/zsh.json +0 -15
- package/data/onTypeFormatting/bash.json +0 -68
- package/data/onTypeFormatting/zsh.json +0 -68
- package/data/rangeSemanticTokens/bash.json +0 -90
- package/data/rangeSemanticTokens/zsh.json +0 -76
- package/data/references/bash.json +0 -221
- package/data/references/zsh.json +0 -166
- package/data/rename/bash.json +0 -37
- package/data/rename/zsh.json +0 -31
- package/data/selectionRange/bash.json +0 -35
- package/data/selectionRange/zsh.json +0 -35
- package/data/semanticTokens/bash.json +0 -71
- package/data/semanticTokens/zsh.json +0 -71
- package/data/signatureHelp/bash.json +0 -111
- package/data/signatureHelp/zsh.json +0 -118
- package/data/typeDefinition/bash.json +0 -95
- package/data/typeDefinition/zsh.json +0 -40
|
@@ -1,104 +1,797 @@
|
|
|
1
|
-
{
|
|
2
|
-
"language": "shell",
|
|
3
|
-
"triggerCharacters": [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"parameters": [
|
|
18
|
-
{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
]
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"label": "
|
|
34
|
-
"documentation": {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
{
|
|
2
|
+
"language": "shell",
|
|
3
|
+
"triggerCharacters": [
|
|
4
|
+
" ",
|
|
5
|
+
"(",
|
|
6
|
+
","
|
|
7
|
+
],
|
|
8
|
+
"retriggerCharacters": [
|
|
9
|
+
" "
|
|
10
|
+
],
|
|
11
|
+
"signatures": [
|
|
12
|
+
{
|
|
13
|
+
"label": "echo [option] [string ...]",
|
|
14
|
+
"documentation": {
|
|
15
|
+
"value": "Displays a line of text to standard output."
|
|
16
|
+
},
|
|
17
|
+
"parameters": [
|
|
18
|
+
{
|
|
19
|
+
"label": "option",
|
|
20
|
+
"documentation": {
|
|
21
|
+
"value": "Options: `-n` suppress trailing newline, `-e` enable backslash escapes, `-E` disable backslash escapes"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"label": "string",
|
|
26
|
+
"documentation": {
|
|
27
|
+
"value": "The string(s) to display"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "read [-p prompt] [-r] [-a array] [-d delim] [-t timeout] [name ...]",
|
|
34
|
+
"documentation": {
|
|
35
|
+
"value": "Reads a line from standard input and splits it into fields, assigning to variables."
|
|
36
|
+
},
|
|
37
|
+
"parameters": [
|
|
38
|
+
{
|
|
39
|
+
"label": "-p prompt",
|
|
40
|
+
"documentation": {
|
|
41
|
+
"value": "Display prompt before reading input"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"label": "-r",
|
|
46
|
+
"documentation": {
|
|
47
|
+
"value": "Do not treat backslash as an escape character"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"label": "-a array",
|
|
52
|
+
"documentation": {
|
|
53
|
+
"value": "Read into an indexed array variable"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "name",
|
|
58
|
+
"documentation": {
|
|
59
|
+
"value": "Variable name(s) to assign the input fields to"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"label": "printf format [arguments ...]",
|
|
66
|
+
"documentation": {
|
|
67
|
+
"value": "Formats and prints data according to a format string, similar to C printf."
|
|
68
|
+
},
|
|
69
|
+
"parameters": [
|
|
70
|
+
{
|
|
71
|
+
"label": "format",
|
|
72
|
+
"documentation": {
|
|
73
|
+
"value": "A format string with specifiers like %s, %d, %f"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"label": "arguments",
|
|
78
|
+
"documentation": {
|
|
79
|
+
"value": "Arguments to substitute into the format string"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"label": "test expression | [ expression ]",
|
|
86
|
+
"documentation": {
|
|
87
|
+
"value": "Evaluate a conditional expression. Returns 0 (true) or 1 (false)."
|
|
88
|
+
},
|
|
89
|
+
"parameters": [
|
|
90
|
+
{
|
|
91
|
+
"label": "expression",
|
|
92
|
+
"documentation": {
|
|
93
|
+
"value": "The conditional expression, e.g. `-f file`, `-d dir`, `str1 = str2`, `n1 -eq n2`"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"label": "export [-fn] [name[=value] ...]",
|
|
100
|
+
"documentation": {
|
|
101
|
+
"value": "Sets environment variables so they are available to child processes."
|
|
102
|
+
},
|
|
103
|
+
"parameters": [
|
|
104
|
+
{
|
|
105
|
+
"label": "name=value",
|
|
106
|
+
"documentation": {
|
|
107
|
+
"value": "Variable name and optional value to export"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"label": "-n",
|
|
112
|
+
"documentation": {
|
|
113
|
+
"value": "Remove the export property from the named variable"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"label": "source filename [arguments]",
|
|
120
|
+
"documentation": {
|
|
121
|
+
"value": "Reads and executes commands from the given file in the current shell environment."
|
|
122
|
+
},
|
|
123
|
+
"parameters": [
|
|
124
|
+
{
|
|
125
|
+
"label": "filename",
|
|
126
|
+
"documentation": {
|
|
127
|
+
"value": "The file to source"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"label": "arguments",
|
|
132
|
+
"documentation": {
|
|
133
|
+
"value": "Positional parameters passed to the sourced script"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
]
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"label": "trap [-lp] [action] [signal ...]",
|
|
140
|
+
"documentation": {
|
|
141
|
+
"value": "Defines actions to be taken when the shell receives a signal."
|
|
142
|
+
},
|
|
143
|
+
"parameters": [
|
|
144
|
+
{
|
|
145
|
+
"label": "action",
|
|
146
|
+
"documentation": {
|
|
147
|
+
"value": "A command string to execute when the signal is received, or `-` to reset"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"label": "signal",
|
|
152
|
+
"documentation": {
|
|
153
|
+
"value": "Signal name or number (e.g. SIGINT, EXIT, ERR, SIGTERM)"
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
]
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"label": "set [--abefhkmnptuvxBCHP] [-o option-name] [arg ...]",
|
|
160
|
+
"documentation": {
|
|
161
|
+
"value": "Sets or unsets shell options and positional parameters."
|
|
162
|
+
},
|
|
163
|
+
"parameters": [
|
|
164
|
+
{
|
|
165
|
+
"label": "-e",
|
|
166
|
+
"documentation": {
|
|
167
|
+
"value": "Exit immediately if a command exits with a non-zero status"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"label": "-u",
|
|
172
|
+
"documentation": {
|
|
173
|
+
"value": "Treat unset variables as an error during parameter expansion"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"label": "-x",
|
|
178
|
+
"documentation": {
|
|
179
|
+
"value": "Print commands and their arguments as they are executed"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"label": "-o option-name",
|
|
184
|
+
"documentation": {
|
|
185
|
+
"value": "Set a named option like `pipefail`, `nounset`, `errexit`"
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"label": "shift [n]",
|
|
192
|
+
"documentation": {
|
|
193
|
+
"value": "Shifts positional parameters to the left by n positions (default 1)."
|
|
194
|
+
},
|
|
195
|
+
"parameters": [
|
|
196
|
+
{
|
|
197
|
+
"label": "n",
|
|
198
|
+
"documentation": {
|
|
199
|
+
"value": "The number of positions to shift (default is 1)"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"label": "getopts optstring name [args]",
|
|
206
|
+
"documentation": {
|
|
207
|
+
"value": "Parses positional parameters as options. Used in while loops for option processing."
|
|
208
|
+
},
|
|
209
|
+
"parameters": [
|
|
210
|
+
{
|
|
211
|
+
"label": "optstring",
|
|
212
|
+
"documentation": {
|
|
213
|
+
"value": "The string of recognized option letters; a colon after a letter means it takes an argument"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"label": "name",
|
|
218
|
+
"documentation": {
|
|
219
|
+
"value": "Variable name to store the current option letter"
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"label": "basename string [suffix]",
|
|
226
|
+
"documentation": {
|
|
227
|
+
"value": "Strips the directory and optionally the suffix from a file path."
|
|
228
|
+
},
|
|
229
|
+
"parameters": [
|
|
230
|
+
{
|
|
231
|
+
"label": "string",
|
|
232
|
+
"documentation": {
|
|
233
|
+
"value": "The file path"
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"label": "suffix",
|
|
238
|
+
"documentation": {
|
|
239
|
+
"value": "An optional suffix to remove from the result"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"label": "dirname string",
|
|
246
|
+
"documentation": {
|
|
247
|
+
"value": "Strips the last component from a file path, returning the directory portion."
|
|
248
|
+
},
|
|
249
|
+
"parameters": [
|
|
250
|
+
{
|
|
251
|
+
"label": "string",
|
|
252
|
+
"documentation": {
|
|
253
|
+
"value": "The file path"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"label": "echo [-n] [-e] [string ...]",
|
|
260
|
+
"documentation": {
|
|
261
|
+
"value": "Outputs the given strings to standard output.\n```bash\necho \"Hello World\"\necho -n \"No newline\"\necho -e \"Line1\\nLine2\"\n```"
|
|
262
|
+
},
|
|
263
|
+
"parameters": [
|
|
264
|
+
{
|
|
265
|
+
"label": "-n",
|
|
266
|
+
"documentation": {
|
|
267
|
+
"value": "Do not output the trailing newline."
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"label": "-e",
|
|
272
|
+
"documentation": {
|
|
273
|
+
"value": "Enable interpretation of backslash escapes (`\\n`, `\\t`, etc.)."
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"label": "string ...",
|
|
278
|
+
"documentation": {
|
|
279
|
+
"value": "One or more strings to output."
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"label": "read [-r] [-p prompt] [-t timeout] [-d delim] [name ...]",
|
|
286
|
+
"documentation": {
|
|
287
|
+
"value": "Reads a line of input and splits it into variables.\n```bash\nread -p \"Enter name: \" name\nread -r line < file.txt\nread -t 5 -p \"Quick! \" answer\n```"
|
|
288
|
+
},
|
|
289
|
+
"parameters": [
|
|
290
|
+
{
|
|
291
|
+
"label": "-r",
|
|
292
|
+
"documentation": {
|
|
293
|
+
"value": "Do not treat backslashes as escape characters."
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"label": "-p prompt",
|
|
298
|
+
"documentation": {
|
|
299
|
+
"value": "Display `prompt` before reading input (without trailing newline)."
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"label": "-t timeout",
|
|
304
|
+
"documentation": {
|
|
305
|
+
"value": "Time out and return failure after `timeout` seconds."
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"label": "-d delim",
|
|
310
|
+
"documentation": {
|
|
311
|
+
"value": "Use `delim` as the line delimiter instead of newline."
|
|
312
|
+
}
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"label": "name ...",
|
|
316
|
+
"documentation": {
|
|
317
|
+
"value": "Variable name(s) to assign input to. Defaults to `REPLY` if omitted."
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
]
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"label": "test expression / [ expression ]",
|
|
324
|
+
"documentation": {
|
|
325
|
+
"value": "Evaluates a conditional expression and returns 0 (true) or 1 (false).\n```bash\ntest -f /etc/passwd && echo \"File exists\"\n[ -d /tmp ] && echo \"Directory exists\"\n[ \"$a\" = \"$b\" ] && echo \"Equal\"\n```"
|
|
326
|
+
},
|
|
327
|
+
"parameters": [
|
|
328
|
+
{
|
|
329
|
+
"label": "expression",
|
|
330
|
+
"documentation": {
|
|
331
|
+
"value": "A conditional expression: `-f file`, `-d dir`, `-z string`, `-n string`, `s1 = s2`, `n1 -eq n2`, etc."
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"label": "declare [-a] [-A] [-i] [-r] [-x] [name[=value] ...]",
|
|
338
|
+
"documentation": {
|
|
339
|
+
"value": "Declares variables and sets attributes.\n```bash\ndeclare -i num=42\ndeclare -a arr=(1 2 3)\ndeclare -A map=([key1]=val1 [key2]=val2)\ndeclare -r CONST=\"immutable\"\n```"
|
|
340
|
+
},
|
|
341
|
+
"parameters": [
|
|
342
|
+
{
|
|
343
|
+
"label": "-a",
|
|
344
|
+
"documentation": {
|
|
345
|
+
"value": "Declare an indexed array variable."
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"label": "-A",
|
|
350
|
+
"documentation": {
|
|
351
|
+
"value": "Declare an associative array variable."
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"label": "-i",
|
|
356
|
+
"documentation": {
|
|
357
|
+
"value": "Give the variable the integer attribute."
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"label": "-r",
|
|
362
|
+
"documentation": {
|
|
363
|
+
"value": "Make the variable readonly."
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"label": "-x",
|
|
368
|
+
"documentation": {
|
|
369
|
+
"value": "Mark the variable for export to child processes."
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"label": "name[=value]",
|
|
374
|
+
"documentation": {
|
|
375
|
+
"value": "Variable name with optional initial value."
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"label": "local [name[=value] ...]",
|
|
382
|
+
"documentation": {
|
|
383
|
+
"value": "Creates a local variable within a function.\n```bash\nmy_func() {\n local name=\"Alice\"\n local -i count=0\n echo \"$name\"\n}\n```"
|
|
384
|
+
},
|
|
385
|
+
"parameters": [
|
|
386
|
+
{
|
|
387
|
+
"label": "name[=value]",
|
|
388
|
+
"documentation": {
|
|
389
|
+
"value": "Variable name with optional initial value, scoped to the current function."
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
]
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"label": "export [-n] [name[=value] ...]",
|
|
396
|
+
"documentation": {
|
|
397
|
+
"value": "Marks variables for export to child processes.\n```bash\nexport PATH=\"/usr/local/bin:$PATH\"\nexport MY_VAR=\"hello\"\nexport -n MY_VAR # unexport\n```"
|
|
398
|
+
},
|
|
399
|
+
"parameters": [
|
|
400
|
+
{
|
|
401
|
+
"label": "-n",
|
|
402
|
+
"documentation": {
|
|
403
|
+
"value": "Remove the export property from the variable."
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
"label": "name[=value]",
|
|
408
|
+
"documentation": {
|
|
409
|
+
"value": "Variable name with optional value to export."
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
]
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"label": "trap [-l] [action] [signal ...]",
|
|
416
|
+
"documentation": {
|
|
417
|
+
"value": "Defines actions to execute when the shell receives a signal.\n```bash\ntrap 'echo Interrupted; exit' INT TERM\ntrap 'rm -f /tmp/lockfile' EXIT\ntrap '' SIGINT # ignore SIGINT\n```"
|
|
418
|
+
},
|
|
419
|
+
"parameters": [
|
|
420
|
+
{
|
|
421
|
+
"label": "action",
|
|
422
|
+
"documentation": {
|
|
423
|
+
"value": "Command string to execute when signal is received. Use `''` to ignore, `-` to reset."
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
"label": "signal ...",
|
|
428
|
+
"documentation": {
|
|
429
|
+
"value": "One or more signal names or numbers: `EXIT`, `INT`, `TERM`, `HUP`, `ERR`, `DEBUG`, etc."
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
]
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"label": "set [-e] [-u] [-x] [-o option]",
|
|
436
|
+
"documentation": {
|
|
437
|
+
"value": "Sets or unsets shell options and positional parameters.\n```bash\nset -euo pipefail\nset -x # enable debug tracing\nset +x # disable debug tracing\n```"
|
|
438
|
+
},
|
|
439
|
+
"parameters": [
|
|
440
|
+
{
|
|
441
|
+
"label": "-e",
|
|
442
|
+
"documentation": {
|
|
443
|
+
"value": "Exit immediately if a command exits with non-zero status."
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"label": "-u",
|
|
448
|
+
"documentation": {
|
|
449
|
+
"value": "Treat unset variables as an error."
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"label": "-x",
|
|
454
|
+
"documentation": {
|
|
455
|
+
"value": "Print each command before executing (debug mode)."
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"label": "-o option",
|
|
460
|
+
"documentation": {
|
|
461
|
+
"value": "Set option by name: `pipefail`, `noclobber`, `nounset`, etc."
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"label": "echo [-neE] [string ...]",
|
|
468
|
+
"documentation": {
|
|
469
|
+
"value": "Outputs the given strings to standard output, separated by spaces and followed by a newline."
|
|
470
|
+
},
|
|
471
|
+
"parameters": [
|
|
472
|
+
{
|
|
473
|
+
"label": "-n",
|
|
474
|
+
"documentation": {
|
|
475
|
+
"value": "Suppress the trailing newline"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"label": "-e",
|
|
480
|
+
"documentation": {
|
|
481
|
+
"value": "Enable interpretation of backslash escape sequences"
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"label": "string",
|
|
486
|
+
"documentation": {
|
|
487
|
+
"value": "The string(s) to output"
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
]
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"label": "print [-rn] [-u fd] [-f format] [string ...]",
|
|
494
|
+
"documentation": {
|
|
495
|
+
"value": "Prints arguments to standard output. More portable than echo for zsh scripts."
|
|
496
|
+
},
|
|
497
|
+
"parameters": [
|
|
498
|
+
{
|
|
499
|
+
"label": "-r",
|
|
500
|
+
"documentation": {
|
|
501
|
+
"value": "Ignore escape conventions of echo"
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"label": "-n",
|
|
506
|
+
"documentation": {
|
|
507
|
+
"value": "Suppress the trailing newline"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"label": "-u fd",
|
|
512
|
+
"documentation": {
|
|
513
|
+
"value": "Output to file descriptor fd instead of stdout"
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"label": "-f format",
|
|
518
|
+
"documentation": {
|
|
519
|
+
"value": "Use printf-style format string"
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"label": "string",
|
|
524
|
+
"documentation": {
|
|
525
|
+
"value": "The string(s) to print"
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"label": "read [-r] [-k num] [-t timeout] [-p prompt] [-A array] [name ...]",
|
|
532
|
+
"documentation": {
|
|
533
|
+
"value": "Reads a line from standard input and assigns words to the named variables."
|
|
534
|
+
},
|
|
535
|
+
"parameters": [
|
|
536
|
+
{
|
|
537
|
+
"label": "-r",
|
|
538
|
+
"documentation": {
|
|
539
|
+
"value": "Raw mode — do not treat backslash as escape character"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"label": "-k num",
|
|
544
|
+
"documentation": {
|
|
545
|
+
"value": "Read exactly num characters"
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"label": "-t timeout",
|
|
550
|
+
"documentation": {
|
|
551
|
+
"value": "Timeout in seconds"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"label": "name",
|
|
556
|
+
"documentation": {
|
|
557
|
+
"value": "Variable name(s) to assign input to"
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"label": "typeset [-aAgHilrtuxZ] [-L|-R width] name[=value] ...",
|
|
564
|
+
"documentation": {
|
|
565
|
+
"value": "Declares variables with specific attributes such as type, scope, and formatting."
|
|
566
|
+
},
|
|
567
|
+
"parameters": [
|
|
568
|
+
{
|
|
569
|
+
"label": "-i",
|
|
570
|
+
"documentation": {
|
|
571
|
+
"value": "Declare as integer variable"
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
"label": "-a",
|
|
576
|
+
"documentation": {
|
|
577
|
+
"value": "Declare as indexed array"
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"label": "-A",
|
|
582
|
+
"documentation": {
|
|
583
|
+
"value": "Declare as associative array (hash)"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"label": "-r",
|
|
588
|
+
"documentation": {
|
|
589
|
+
"value": "Declare as read-only"
|
|
590
|
+
}
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"label": "name=value",
|
|
594
|
+
"documentation": {
|
|
595
|
+
"value": "The variable name and optional initial value"
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
]
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"label": "autoload [-Uz] function_name ...",
|
|
602
|
+
"documentation": {
|
|
603
|
+
"value": "Marks a function for autoloading from a file in `$fpath`."
|
|
604
|
+
},
|
|
605
|
+
"parameters": [
|
|
606
|
+
{
|
|
607
|
+
"label": "-U",
|
|
608
|
+
"documentation": {
|
|
609
|
+
"value": "Suppress alias expansion during loading"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
"label": "-z",
|
|
614
|
+
"documentation": {
|
|
615
|
+
"value": "Use zsh-style function definition"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"label": "function_name",
|
|
620
|
+
"documentation": {
|
|
621
|
+
"value": "The name of the function to autoload"
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
"label": "zstyle pattern style value ...",
|
|
628
|
+
"documentation": {
|
|
629
|
+
"value": "Defines style settings used by completion and other zsh subsystems. Patterns match contexts."
|
|
630
|
+
},
|
|
631
|
+
"parameters": [
|
|
632
|
+
{
|
|
633
|
+
"label": "pattern",
|
|
634
|
+
"documentation": {
|
|
635
|
+
"value": "A context pattern, e.g. `:completion:*:*:*`"
|
|
636
|
+
}
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
"label": "style",
|
|
640
|
+
"documentation": {
|
|
641
|
+
"value": "The style name, e.g. `menu`, `list-colors`, `matcher-list`"
|
|
642
|
+
}
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"label": "value",
|
|
646
|
+
"documentation": {
|
|
647
|
+
"value": "The value(s) for the style"
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
]
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
"label": "compctl [-CDT] [-/options/] [-k array] [-K function] command ...",
|
|
654
|
+
"documentation": {
|
|
655
|
+
"value": "Old-style completion control (legacy). Defines completion behavior for specific commands."
|
|
656
|
+
},
|
|
657
|
+
"parameters": [
|
|
658
|
+
{
|
|
659
|
+
"label": "-k array",
|
|
660
|
+
"documentation": {
|
|
661
|
+
"value": "Complete from the elements of the named array"
|
|
662
|
+
}
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"label": "-K function",
|
|
666
|
+
"documentation": {
|
|
667
|
+
"value": "Call function to generate completions"
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
"label": "command",
|
|
672
|
+
"documentation": {
|
|
673
|
+
"value": "The command(s) this completion applies to"
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"label": "compadd [-aQqS] [-p prefix] [-s suffix] [-d array] [words ...]",
|
|
680
|
+
"documentation": {
|
|
681
|
+
"value": "Adds completion matches from within a completion function."
|
|
682
|
+
},
|
|
683
|
+
"parameters": [
|
|
684
|
+
{
|
|
685
|
+
"label": "-a",
|
|
686
|
+
"documentation": {
|
|
687
|
+
"value": "Words are names of arrays containing the completions"
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
"label": "-p prefix",
|
|
692
|
+
"documentation": {
|
|
693
|
+
"value": "A prefix to prepend to each completion"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"label": "-s suffix",
|
|
698
|
+
"documentation": {
|
|
699
|
+
"value": "A suffix to append to each completion"
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
"label": "words",
|
|
704
|
+
"documentation": {
|
|
705
|
+
"value": "The completion strings to add"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
]
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"label": "zmodload [-adu] module ...",
|
|
712
|
+
"documentation": {
|
|
713
|
+
"value": "Loads or unloads zsh modules (e.g. `zsh/zpty`, `zsh/regex`, `zsh/stat`)."
|
|
714
|
+
},
|
|
715
|
+
"parameters": [
|
|
716
|
+
{
|
|
717
|
+
"label": "-a",
|
|
718
|
+
"documentation": {
|
|
719
|
+
"value": "Autoload: mark module to load on first use"
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"label": "-u",
|
|
724
|
+
"documentation": {
|
|
725
|
+
"value": "Unload the specified module"
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"label": "module",
|
|
730
|
+
"documentation": {
|
|
731
|
+
"value": "The module name, e.g. `zsh/complist`, `zsh/datetime`"
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
]
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
"label": "bindkey [-e|-v] [-M keymap] key command",
|
|
738
|
+
"documentation": {
|
|
739
|
+
"value": "Binds a key sequence to a widget (command) in the specified or current keymap."
|
|
740
|
+
},
|
|
741
|
+
"parameters": [
|
|
742
|
+
{
|
|
743
|
+
"label": "-e",
|
|
744
|
+
"documentation": {
|
|
745
|
+
"value": "Select the emacs keymap"
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"label": "-v",
|
|
750
|
+
"documentation": {
|
|
751
|
+
"value": "Select the vi keymap"
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"label": "key",
|
|
756
|
+
"documentation": {
|
|
757
|
+
"value": "The key sequence, e.g. `'^R'`, `'^[[A'`, `'\\e.'`"
|
|
758
|
+
}
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"label": "command",
|
|
762
|
+
"documentation": {
|
|
763
|
+
"value": "The ZLE widget to bind to, e.g. `history-incremental-search-backward`"
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
]
|
|
767
|
+
},
|
|
768
|
+
{
|
|
769
|
+
"label": "setopt option_name ...",
|
|
770
|
+
"documentation": {
|
|
771
|
+
"value": "Enables one or more shell options."
|
|
772
|
+
},
|
|
773
|
+
"parameters": [
|
|
774
|
+
{
|
|
775
|
+
"label": "option_name",
|
|
776
|
+
"documentation": {
|
|
777
|
+
"value": "The option to enable, e.g. `AUTO_CD`, `EXTENDED_GLOB`, `CORRECT`, `HIST_IGNORE_DUPS`, `NO_BEEP`"
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
]
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"label": "unsetopt option_name ...",
|
|
784
|
+
"documentation": {
|
|
785
|
+
"value": "Disables one or more shell options."
|
|
786
|
+
},
|
|
787
|
+
"parameters": [
|
|
788
|
+
{
|
|
789
|
+
"label": "option_name",
|
|
790
|
+
"documentation": {
|
|
791
|
+
"value": "The option to disable"
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
]
|
|
795
|
+
}
|
|
796
|
+
]
|
|
797
|
+
}
|