Skip to main content
Version: 2.2 (deprecated)

dependees


pants dependees [args]

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

Backend: ``

Config section: [dependees]

Basic options

closed

--[no-]dependees-closed
PANTS_DEPENDEES_CLOSED
pants.toml
[dependees]
closed = <bool>
default: False

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

output_file

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

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

output_format

--dependees-output-format=<DependeesOutputFormat>
PANTS_DEPENDEES_OUTPUT_FORMAT
pants.toml
[dependees]
output_format = <DependeesOutputFormat>
one of: text, json
default: text

Use text for a flattened list of target addresses; use json for each key to be the address of one of the specified targets, with its value being a list of that target's dependees, e.g. {':example': [':dep1', ':dep2']}.

sep

--dependees-sep=<separator>
PANTS_DEPENDEES_SEP
pants.toml
[dependees]
sep = <separator>
default: \n

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

transitive

--[no-]dependees-transitive
PANTS_DEPENDEES_TRANSITIVE
pants.toml
[dependees]
transitive = <bool>
default: False

List all transitive dependees, instead of only direct dependees.

Advanced options

None

Deprecated options

None