Step 7: Remaining commands — remove, verify, list, diff.
Remove: untrack files, remove manifest entries, save. 2 tests. Verify: check blobs against manifest hashes, report ok/mismatch/missing. 3 tests. List: return all tracked entries, CLI formats by type. 2 tests. Diff: compare stored blob vs current file, simple line diff. 3 tests. Each command in its own file (garden/<cmd>.go) for parallel development. Remove, verify, list implemented by parallel worktree agents; diff manual. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -77,12 +77,12 @@ Depends on Step 5.
|
||||
|
||||
*These can be done in parallel with each other.*
|
||||
|
||||
- [ ] `garden/garden.go`: `Remove(paths []string) error` — remove manifest entries
|
||||
- [ ] `garden/garden.go`: `Verify() ([]VerifyResult, error)` — check blobs against manifest hashes
|
||||
- [ ] `garden/garden.go`: `List() []Entry` — return all manifest entries
|
||||
- [ ] `garden/diff.go`: `Diff(path string) (string, error)` — diff stored blob vs current file
|
||||
- [ ] Wire up CLI: `cmd/sgard/remove.go`, `cmd/sgard/verify.go`, `cmd/sgard/list.go`, `cmd/sgard/diff.go`
|
||||
- [ ] Tests for each
|
||||
- [x] `garden/remove.go`: `Remove(paths []string) error` — remove manifest entries
|
||||
- [x] `garden/verify.go`: `Verify() ([]VerifyResult, error)` — check blobs against manifest hashes
|
||||
- [x] `garden/list.go`: `List() []Entry` — return all manifest entries
|
||||
- [x] `garden/diff.go`: `Diff(path string) (string, error)` — diff stored blob vs current file
|
||||
- [x] Wire up CLI: `cmd/sgard/remove.go`, `cmd/sgard/verify.go`, `cmd/sgard/list.go`, `cmd/sgard/diff.go`
|
||||
- [x] Tests for each
|
||||
|
||||
## Step 8: Polish
|
||||
|
||||
|
||||
Reference in New Issue
Block a user