Skip to content

feat(ls,tree): implement ls and tree commands - #9

Merged
jmgilman merged 1 commit into
masterfrom
feat/ls-tree-commands
Jan 22, 2026
Merged

jmgilman merged 1 commit into
masterfrom
feat/ls-tree-commands

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • Add blob ls command for listing files and directories in archives with support for long format (-l), human-readable sizes (-h), and digest display (--digest)
  • Add blob tree command for displaying hierarchical directory structure with optional depth limit (-L) and dirs-first sorting (--dirsfirst)
  • Create internal/archive package with core inspection, formatting, and tree rendering utilities
  • Both commands support text and JSON output formats via --output json

Test plan

  • Unit tests for all new code in internal/archive/ package
  • Unit tests for cmd/ls.go and cmd/tree.go
  • Manual testing against docker.io/meigma/blob-test:v1
  • just ci passes (lint, test, build)

🤖 Generated with Claude Code

Add commands for listing and displaying archive contents:
- `blob ls` lists files/directories with optional long format, human-readable
  sizes, and digest display
- `blob tree` shows hierarchical directory structure with optional depth
  limit and dirs-first sorting
- Both commands support text and JSON output formats
- Create internal/archive package with inspection, formatting, and tree
  rendering utilities

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman
jmgilman merged commit 4c40d6e into master Jan 22, 2026
5 checks passed
@jmgilman
jmgilman deleted the feat/ls-tree-commands branch January 22, 2026 18:03
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