anon_target
type
Accessors to the promise of the anon rule and the promised artifacts associated with the rule.
anon_target.artifact
def anon_target.artifact(name: str)
Gets a specific StarlarkPromiseArtifact
by name. Returns an error if the name was not found in the registered promise artifacts for the anon target.
anon_target.artifacts
def anon_target.artifacts()
Returns a dict where the key is the promise artifact's name, and the value is the StarlarkPromiseArtifact
.
To get a promise artifact where the short path is accessible, call ctx.actions.assert_short_path(...)
and
pass in the artifact retrieved from this dict.
anon_target.promise
anon_target.promise: promise
Returns the promise that maps to the result of the anon rule.