这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pjcdawkins
Copy link
Contributor

No description provided.

@pjcdawkins pjcdawkins requested a review from Copilot July 31, 2025 16:46

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot July 31, 2025 17:22

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot August 4, 2025 19:51

This comment was marked as outdated.

Copy link

Copilot AI left a 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 deps to list dependencies with filtering options
  • Enhances the Dependency struct with IsDirect, IsDevOnly, and ToolName fields
  • 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

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>
@pjcdawkins pjcdawkins merged commit 799cf49 into main Aug 21, 2025
2 checks passed
@pjcdawkins pjcdawkins deleted the deps-command branch September 7, 2025 21: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.

2 participants