-
Notifications
You must be signed in to change notification settings - Fork 1
Add a 'deps' command to list dependencies #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
956ee00 to
20409d9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new 'deps' command to list dependencies found in a repository, extending the existing dependency parsing capabilities to support both direct and indirect dependencies with enhanced metadata. It implements comprehensive support for dependency classification across all language ecosystems.
- Adds a new CLI command
depsto list dependencies with filtering options - Enhances the
Dependencystruct withIsDirect,IsDevOnly, andToolNamefields - Updates all dependency managers to populate the new metadata fields correctly
Reviewed Changes
Copilot reviewed 32 out of 32 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| cmd/whatsun/cmd_deps.go | New CLI command implementation for listing dependencies |
| cmd/whatsun/main.go | Registers the new deps command |
| cmd/whatsun/plain_output.go | Plain text output formatting for deps and analyze commands |
| cmd/whatsun/terminal.go | Terminal width detection utility |
| cmd/whatsun/cmd_analyze.go | Adds plain output support to analyze command |
| pkg/dep/dep.go | Adds IsDirect, IsDevOnly, and ToolName fields to Dependency struct |
| pkg/dep/*.go | Updates all language-specific managers to populate new fields |
| pkg/dep/*_test.go | Updates test expectations for new dependency fields |
| go.mod | Adds golang.org/x/term dependency |
20409d9 to
dcc5e3e
Compare
Implements a new `whatsun deps` subcommand that walks through all directories in a repository and lists dependencies found by every supported dependency manager (Go, JavaScript, Python, .NET, Java, PHP, Ruby, Rust, Elixir). Output includes Path, Manager, Name, Constraint, and Version columns in a formatted table. Supports --ignore flag for excluding paths/patterns. Only "direct" dependencies are included by default unless the --include-indirect flag is passed. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
dcc5e3e to
799cf49
Compare
No description provided.