Commit f181e5b
docs(cli): allow for a pinned target in the confirmCommand contract
The confirmation docs promised that the `confirmCommand` is the command you
ran plus `--force`, and that it "echoes back only the flags that were
actually passed". That is true of every command on main today: the two
callers that reshape their preview flags (`members delete`, `members
update`) only drop empty ones, they never add.
It stops being true the moment #1402 lands. `import commit` and `import
cancel` resolve their plan and pin it into the preview, so a bare
`checkly import commit` confirms as:
checkly import commit --plan-id="abc123" --force
The pin is the right call — it stops the approved run from re-resolving to
a plan the user was never shown — but it makes an absolute claim in this
reference false, and #1402 merges first. Widen the contract to allow a
resolved target, and keep "treat every flag you see there as deliberate",
which was always the operative rule and covers the pinned flag too.
Worded to hold under either merge order: it describes the mechanism without
pointing at the import section that arrives with #1402.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent a722246 commit f181e5b
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
0 commit comments