Commit 2abca03
feat(cli): allow setting project name in .chainloop.yaml
Extend DotChainloopConfig to support a `project` field so that
`chainloop attestation init` can read the project name from the
config file when the --project flag is not provided.
Precedence: CLI flag > .chainloop.yaml > default.
Example .chainloop.yaml:
project: my-project
projectVersion: v1.2.0
Note: organization override from .chainloop.yaml is not included
in this PR because the org is baked into the gRPC connection
credentials during PersistentPreRunE, before att init's PreRunE
runs. Supporting org override requires loading the config earlier
in the command lifecycle — left for follow-up discussion.
Fixes: #3063
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Vibhav Bobade <vibhav.bobde@gmail.com>1 parent bb484cd commit 2abca03
2 files changed
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | | - | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
66 | 74 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
| |||
173 | 177 | | |
174 | 178 | | |
175 | 179 | | |
176 | | - | |
177 | | - | |
| 180 | + | |
178 | 181 | | |
179 | 182 | | |
180 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
164 | 166 | | |
0 commit comments