Commit 1ddefa7
authored
apply: drop --dry-run; it always validates before publishing (#299)
`ucode apply --dry-run` validated and previewed without writing — but `apply`
already validates unconditionally before it publishes, shows the summary, and
confirms, so the flag added a mode with no distinct value. `ucode setup` only ever
writes a valid manifest; the one case worth guarding is a hand-edited
managed-settings.json, and that is caught by the normal validation `apply` runs
regardless.
Removes the `--dry-run` option from `apply_cmd` and the `is_dry_run()` early-out
in `apply_command`. The confirmation prompt still gates every publish, and the
manifest is still validated first (`ucode apply` on an invalid hand-edit fails
before anything reaches the workspace). README updated.
Unrelated dry-run paths are untouched: `ucode setup --dry-run` (walk the flow
without writing) and `ucode --dry-run` (launch against the last saved config) keep
their flags.
Tests: dropped test_dry_run_validates_without_publishing (behaviour gone); the
option-declaration test now asserts `--dry-run` is absent and `--yes` present.
Co-authored-by: Isaac1 parent 62c5536 commit 1ddefa7
4 files changed
Lines changed: 12 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | 209 | | |
213 | 210 | | |
214 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2345 | 2345 | | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | | - | |
2349 | | - | |
2350 | | - | |
2351 | | - | |
2352 | 2348 | | |
2353 | | - | |
2354 | | - | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
2355 | 2355 | | |
2356 | 2356 | | |
2357 | 2357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | 1088 | | |
1093 | 1089 | | |
1094 | 1090 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1610 | 1610 | | |
1611 | 1611 | | |
1612 | 1612 | | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | 1613 | | |
1626 | 1614 | | |
1627 | 1615 | | |
| |||
1678 | 1666 | | |
1679 | 1667 | | |
1680 | 1668 | | |
1681 | | - | |
1682 | | - | |
1683 | | - | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
1684 | 1673 | | |
1685 | 1674 | | |
1686 | | - | |
| 1675 | + | |
| 1676 | + | |
1687 | 1677 | | |
1688 | 1678 | | |
1689 | 1679 | | |
| |||
0 commit comments