PromiseArtifact
A single input or output file for an action.
There is no .parent
method on artifact
, but in most cases
cmd_args(my_artifact, parent = 1)
can be used to similar effect.
PromiseArtifact.as_output
def PromiseArtifact.as_output(
) -> OutputArtifact
Returns a StarlarkOutputArtifact
instance, or fails if the artifact is either an Artifact
, or is a bound Artifact
(You cannot bind twice)
PromiseArtifact.basename
PromiseArtifact.basename: str
The base name of this artifact. e.g. for an artifact at foo/bar
, this is bar
PromiseArtifact.extension
PromiseArtifact.extension: str
The file extension of this artifact. e.g. for an artifact at foo/bar.sh, this is .sh
. If no extension is present, ""
is returned.