Skip to main content
Version: 2.23 (prerelease)

dependents


pants dependents [args]

List all targets that depend on any of the input files/targets.

Backend: pants.backend.project_info

Config section: [dependents]

Basic options

closed

--[no-]dependents-closed
PANTS_DEPENDENTS_CLOSED
pants.toml
[dependents]
closed = <bool>
default: False

Include the input targets in the output, along with the dependents.

format

--dependents-format=<DependentsOutputFormat>
PANTS_DEPENDENTS_FORMAT
pants.toml
[dependents]
format = <DependentsOutputFormat>
one of: text, json
default: text

Output format for listing dependents.

output_file

--dependents-output-file=<path>
PANTS_DEPENDENTS_OUTPUT_FILE
pants.toml
[dependents]
output_file = <path>
default: None

Output the goal's stdout to this file. If unspecified, outputs to stdout.

sep

--dependents-sep=<separator>
PANTS_DEPENDENTS_SEP
pants.toml
[dependents]
sep = <separator>
default: \n

String to use to separate lines in line-oriented output.

transitive

--[no-]dependents-transitive
PANTS_DEPENDENTS_TRANSITIVE
pants.toml
[dependents]
transitive = <bool>
default: False

List all transitive dependents. If unspecified, list direct dependents only.

Advanced options

None

Deprecated options

None