cli
CLI-only builtin functions.
- cli.depends(label_or_target) list[str]
Returns the transitive closure of targets depended on by the given target.
- Parameters:
label_or_target – the label or target in question.
- Returns:
the target’s transitive dependency closure.
- Return type:
List[str]
- cli.what_depends(label_or_target) list[str]
Returns the transitive closure of target that depend on the given target.
- Parameters:
label_or_target – the label or target in question.
- Returns:
the target’s transitive dependent closure.
- Return type:
List[str]