Skip to content

feat(cli): rename snapshot to save and add --hash-files#268

Merged
alecthomas merged 1 commit intomainfrom
aat/cli-save-hash-files
Apr 20, 2026
Merged

feat(cli): rename snapshot to save and add --hash-files#268
alecthomas merged 1 commit intomainfrom
aat/cli-save-hash-files

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

The CLI now exposes a declarative key-from-file-hash workflow that
mirrors the Go API: pass --hash-files (-H) repeatedly with doublestar
globs to derive the cache key from file contents. --key and
--hash-files are mutually exclusive and exactly one is required.

Save also gains an optional variadic [paths...] positional so callers
can archive a subset of a directory, matching the Go API's
Save(baseDir, paths) shape.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

The CLI now exposes a declarative key-from-file-hash workflow that
mirrors the Go API: pass --hash-files (-H) repeatedly with doublestar
globs to derive the cache key from file contents. --key and
--hash-files are mutually exclusive and exactly one is required.

Save also gains an optional variadic [paths...] positional so callers
can archive a subset of a directory, matching the Go API's
Save(baseDir, paths) shape.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner April 20, 2026 04:42
@alecthomas alecthomas requested review from inez and removed request for a team April 20, 2026 04:42
@alecthomas alecthomas merged commit 4c278d6 into main Apr 20, 2026
8 checks passed
@alecthomas alecthomas deleted the aat/cli-save-hash-files branch April 20, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant