Commit 4aa66fc
committed
Add BuildArgs support to TemplateData and all templates
- Add BuildArgs field to TemplateData struct for baking required CLI
arguments into container ENTRYPOINT at build time
- Update npx.tmpl to insert BuildArgs before "$@"
- Update uvx.tmpl to insert BuildArgs before "$@"
- Update go.tmpl to insert BuildArgs in JSON array format
BuildArgs are for required subcommands (e.g., 'start') while runtime
args passed via '-- <args>' append after. This prevents duplication
issues that led to MCPArgs removal in PR #2630.
Related to: stacklok/dockyard#1891 parent 832c968 commit 4aa66fc
4 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
0 commit comments