Skip to content

Add ls command - #150

Merged
thelovekesh merged 2 commits into
mainfrom
add/ls-command
Jan 17, 2026
Merged

Add ls command#150
thelovekesh merged 2 commits into
mainfrom
add/ls-command

Conversation

@thelovekesh

Copy link
Copy Markdown
Collaborator

Add wpm ls command to list all the deps with versions.

Example:

cool-project
├── auto-cloudinary@1.3.1
├── better-search-replace@1.4.10
├── duplicate-post@4.5.0
├── pantheon-advanced-page-cache@2.1.2
├── redirection@5.6.1
├── solr-power@2.6.0
├── wordpress-seo@26.7.0
└── wp-redis@1.4.7

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello @thelovekesh, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly enhances the wpm CLI by introducing a new ls command. This command provides a comprehensive, tree-structured overview of a project's dependencies, drawing data from wpm.json and wpm.lock files. The addition improves the user's ability to inspect and manage their project's dependency graph, offering insights into versions, potential issues like unmet dependencies or cycles, and allowing for customizable display depth.

Highlights

  • New ls command added: Introduced a new wpm ls command that allows users to list all installed dependencies along with their versions in a tree-like format.
  • Dependency Tree Visualization: The command provides a clear, hierarchical view of dependencies, similar to npm ls, reading information from wpm.json and wpm.lock files.
  • Depth Control: A --depth flag (shorthand -d) has been added to control the maximum display depth of the dependency tree, enabling users to focus on specific levels of the dependency graph.
  • Dependency Status Indicators: The output includes indicators for invalid versions, unmet dependencies, and detects and marks dependency cycles for better understanding of the project's dependency health.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions

Copy link
Copy Markdown

📦 wpm cli builds 📦

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request introduces a new ls command to list project dependencies in a tree format. The implementation is well-structured, handling wpm.json and wpm.lock files, dependency depth, and cycle detection correctly.

I've added a few suggestions to improve code clarity and maintainability, mainly around refactoring parts of the output formatting logic and using standard Go interfaces. Overall, this is a great addition.

Comment thread cli/command/ls/ls.go Outdated
Comment thread cli/command/ls/ls.go
Comment thread cli/command/ls/ls.go
@thelovekesh
thelovekesh merged commit 4d5162a into main Jan 17, 2026
15 checks passed
@thelovekesh
thelovekesh deleted the add/ls-command branch January 17, 2026 18:37
@thelovekesh thelovekesh added the command any changes to the wpm cli command label Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command any changes to the wpm cli command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant