list_targets
List Bazel targets by package pattern: use //... for workspace, //pkg for specific package, or //pkg/... for subtree.
Instructions
List all targets matching a package pattern.
Default //... lists targets across the entire workspace (can be slow). For a single package use //pkg or pkg (normalized to //pkg:all). For a subtree use //pkg/...
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | No | //... |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |