Skip to content

Conversation

@tanbirali
Copy link

Purpose

The bal graph command outputs a digraph. This is not directly readable from the CLI and the users have to use a digraph visualizer to view the dependency graph.

Fixes #42866

Approach

A new class, CreateDependencyTreeTask, was created. This new task is responsible for accessing the project's resolved dependency graph, traversing it using a recursive method. Finally, the GraphCommand execution pipeline was updated to swap the old digraph task with the new dependency tree task.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@tanbirali tanbirali requested a review from azinneera as a code owner October 8, 2025 19:44
@tanbirali tanbirali closed this Oct 24, 2025
@tanbirali tanbirali deleted the graph-cmd branch October 24, 2025 15:06
@tanbirali tanbirali restored the graph-cmd branch October 24, 2025 15:06
@tanbirali tanbirali reopened this Oct 24, 2025
@azinneera
Copy link
Contributor

@tanbirali, there are compilation errors. Could you please check and fix them?

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.

[Improvement]: Output a readable dependency tree for bal graph

2 participants