Repository navigation
Commit 5b4ffaf
committed
python-sdk: add CLI 1.0 client init
CLI 1.0 calls initClient when a workspace adds a managed client. The Python
SDK init-contract work lives in the stacked prepare-cli-1.0-init-contract
branch, but that branch does not add the client hook.
Add initClient with the CLI 1.0 signature, including the dev flag. It returns
an empty Changeset on purpose: the engine records the client and owns generated
client files through GeneratedContextChangeset.
Add an e2e check that calls initClient and verifies the SDK returns no file
changes.
This keeps the PR narrowly scoped on top of #2. It only adds the client init
hook and does not duplicate the targetRuntime or initModule changes from the
stacked base.
Signed-off-by: Guillaume de Rouville <guillaume@dagger.io>1 parent a976c93 commit 5b4ffaf
2 files changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
159 | 171 | | |
160 | 172 | | |
161 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
| |||
0 commit comments