Repository navigation
Commit df1818b
Add resource command arguments and visibility (#16710)
* Add resource command argument inputs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Improve resource command arguments
Allow resource command invocations to capture trailing arguments and map them through discovered command argument inputs. Keep --args-json as a hidden legacy alias for the new --arguments option.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Use resource command positional arguments
Remove the resource command JSON arguments option and rely on the variadic command arguments captured by System.CommandLine. A single trailing JSON object remains supported as the structured escape hatch.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add resource command visibility
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Restore resource command annotation constructor compatibility
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update polyglot command option snapshots
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add Stress playground command argument sample
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Expand Stress command argument samples
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Expose Stress command argument UI sample
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Use interaction inputs for command arguments
Align resource command invocation arguments with the interaction service model by exposing populated InteractionInputCollection values to command handlers instead of raw JSON.
Keep JSON/protobuf conversion in transport layers and let those adapters materialize the declared command inputs before executing commands.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Rename command argument options
Use CommandOptions.Arguments for command argument declarations to match ExecuteCommandContext.Arguments.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Synchronize API docs test fetcher
Protect requested URL tracking in the ApiDocs test fetcher because member container searches fetch pages concurrently.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Add resource command argument validation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Forward resource command arguments by order
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update command argument code generation snapshots
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Support polyglot resource command arguments
Expose typed command argument validation callbacks to polyglot AppHosts, add the TypeScript interaction input intrinsic, and keep CLI invocation positional.
Also validates the TypeScript playground command path and fixes Dashboard argument dialog closing after successful validation.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix ATS object unmarshalling and TS input typing
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Treat init-only ATS properties as read-only
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update polyglot validation samples for getter APIs
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update reusable TypeScript E2E sample for getter API
Use the generated callable getter for ExecuteCommandContext.resourceName so the helper package sample matches the current TypeScript SDK shape.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address PR feedback on command validation tests
Forward validateOnly through the TestDashboardClient command delegate and update stale auxiliary backchannel capability comments.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address command argument PR feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address resource command execution feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Move resource command prompts to AppHost
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address resource command argument review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Fix rebase conflict fallout
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Refactor stress apphost to organize commands into nested resource groups
* Fix dashboard command validation test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address resource command review feedback
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: James Newton-King <james@newtonking.com>1 parent 8328fd9 commit df1818b
74 files changed
Lines changed: 6070 additions & 1540 deletions
File tree
- playground
- Stress/Stress.AppHost
- TypeScriptAppHost
- src
- Aspire.Cli
- Backchannel
- Commands
- Mcp/Tools
- Aspire.Dashboard
- Model
- ServiceClient
- Aspire.Hosting.CodeGeneration.TypeScript
- Resources
- Aspire.Hosting.Integration.Analyzers
- Aspire.Hosting.RemoteHost
- Ats
- Aspire.Hosting
- ApplicationModel
- Backchannel
- Dashboard
- proto
- Orchestrator
- Aspire.TypeSystem
- tests
- Aspire.Cli.EndToEnd.Tests
- Aspire.Cli.Tests
- Backchannel
- Commands
- Mcp
- ApiDocs
- TestServices
- Aspire.Dashboard.Components.Tests
- Controls
- Pages
- Aspire.Dashboard.Tests
- Integration/Playwright/Infrastructure
- Aspire.Hosting.CodeGeneration.Go.Tests/Snapshots
- Aspire.Hosting.CodeGeneration.Java.Tests/Snapshots
- Aspire.Hosting.CodeGeneration.Python.Tests/Snapshots
- Aspire.Hosting.CodeGeneration.Rust.Tests/Snapshots
- Aspire.Hosting.CodeGeneration.TypeScript.Tests
- Snapshots
- Aspire.Hosting.EntityFrameworkCore.Tests
- Aspire.Hosting.RemoteHost.Tests
- Aspire.Hosting.Tests
- Backchannel
- Dashboard
- PolyglotAppHosts
- Aspire.Hosting.Foundry
- Java
- TypeScript
- Aspire.Hosting/TypeScript
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 74 | | |
99 | 75 | | |
100 | 76 | | |
| |||
103 | 79 | | |
104 | 80 | | |
105 | 81 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
| 82 | + | |
129 | 83 | | |
130 | 84 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
| 85 | + | |
226 | 86 | | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 87 | + | |
245 | 88 | | |
246 | 89 | | |
247 | 90 | | |
| |||
279 | 122 | | |
280 | 123 | | |
281 | 124 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
0 commit comments