Skip to content

Add hardcache local status command - #22

Draft
AlekSi wants to merge 13 commits into
mainfrom
status
Draft

Add hardcache local status command#22
AlekSi wants to merge 13 commits into
mainfrom
status

Conversation

@AlekSi

@AlekSi AlekSi commented Apr 10, 2026

Copy link
Copy Markdown
Owner

Closes #16.

@AlekSi AlekSi changed the title Add status command Add hardcache local status command Apr 10, 2026
@AlekSi
AlekSi requested a balanced review from Copilot August 12, 2026 18:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds local cache and disk usage reporting through hardcache local status.

Changes:

  • Adds human-readable and compact JSON status output.
  • Implements cache statistics collection with tests.
  • Reorganizes trim flags and updates documentation and CI actions.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Documents status usage.
main.go Registers status and reorganizes trim flags.
main_status.go Implements status reporting.
main_status_test.go Tests output formatting.
internal/go/cache/cache_extra.go Adds cache scanning statistics.
internal/caches/local/local.go Exposes local cache status.
internal/caches/local/local_test.go Tests cache statistics.
CHANGELOG.md Records CLI changes.
.github/workflows/go.yml Downgrades CI action versions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread main_status.go Outdated
}

func localStatus(dir string, asJSON bool, l *slog.Logger) error {
c, err := local.New(dir, nil, nil, l)
Comment thread internal/go/cache/cache_extra.go Outdated
Comment on lines +140 to +141
func (c *DiskCache) Stats(l *slog.Logger) Stats {
files, bytes := c.read(l)
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.

Add hardcache local status command

2 participants