depot: replace --target local with --out DIR (#67)
Closes #66. `depot status` and `depot get` chose a depot tree on disk with `--target local`, taking the root from `DEPOT_DIR`. One decision, two flags — and `--target local` with no directory anywhere was valid but meaningless. Now they take `--out DIR`, matching the crucible nwsync surface. `--target` names remote backends only (`bunny|cdn`). Passing both exits 64. - `--target local` stays as a deprecated alias for `--out $DEPOT_DIR`, listed in the hidden-alias table in `docs/command-surface.md`. Nothing in `wrappers/` calls depot, but the three repos in `wrappers/consumers.txt` are out of reach from here, so the alias stays. - `status --source` was already unused; it now warns "ignored; use --out DIR" instead of accepting silently. - Fixes a real parse bug found on the way: the documented `depot get <sha> <dest> --target cdn` form never parsed its flags, because Go's `flag` package stops at the first positional. Positionals are split off by hand now; both orders are tested. - Registry usage strings and `docs/command-surface.md` synced — that doc still said depot was unwired. Not converted: `push --source` and `pull --dest`. Neither is `--target local`; one names a read source, the other a remote pull's destination. Say the word if they should become `--out` too. `go test ./...` green. 🤖 Generated with [Claude Code](https://claude.com/claude-code)Reviewed-on: #67 Co-authored-by: vickydotbat <vickydotbat@tutamail.com>
This commit was merged in pull request #67.
This commit is contained in:
@@ -29,9 +29,15 @@ aliases.
|
||||
| `assets` | `fix-mdl` | Lowercase `.mdl` names and rewrite model identity to match. |
|
||||
| `assets` | `check-dupes` | Report runtime-name (basename) collisions across dirs. |
|
||||
| `assets` | `clean-dupes` | Delete clean-tree files whose basename collides with primary. |
|
||||
| `depot` | `status` | Report referenced-vs-present drift against a backend. |
|
||||
| `depot` | `push` | Upload referenced-but-absent blobs from a local depot. |
|
||||
| `depot` | `verify` | Existence sweep plus sampled download re-hash. |
|
||||
| `depot` | `get` | Fetch one blob with sha re-verify. |
|
||||
| `depot` | `pull` | Incremental verified pull of every referenced blob. |
|
||||
|
||||
`crucible-depot` remains registered but unwired. It fails closed with exit `70`
|
||||
and never emits placeholder artifacts.
|
||||
`depot status` and `depot get` pick their backend either with `--out DIR`, a
|
||||
depot tree on disk, or with `--target bunny|cdn`, a remote backend. The two
|
||||
flags are mutually exclusive.
|
||||
|
||||
## Hidden compatibility aliases
|
||||
|
||||
@@ -49,6 +55,7 @@ but omitted from routine help and the interactive menu:
|
||||
| `topdata` | `build-top-package` | `build-top-package` |
|
||||
| `topdata` | `compare-topdata` | `compare-topdata` |
|
||||
| `topdata` | `convert-topdata` | `convert-topdata` |
|
||||
| `depot` | `--target local` | `--out $DEPOT_DIR` on `status`/`get` |
|
||||
| `wiki` | `build-wiki` | `build-wiki` |
|
||||
| `wiki` | `deploy-wiki` | `deploy-wiki` |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user