coerced_attr
type
Methods on configured target node's attributes.
coerced_attr.type
coerced_attr.type: str
Returns the type name of the attribute
Sample usage:
def _impl_type(ctx):
node = ctx.uquery().owner("bin/TARGETS")[0]
ctx.output.print(node.attrs.name.type)
coerced_attr.value
def coerced_attr.value()
Returns the value of this attribute. Limited support of selects, concats, and explicit configuration deps at this time.
Sample usage:
def _impl_value(ctx):
node = ctx.uquery().owner("bin/TARGETS")[0]
ctx.output.print(node.attrs.name.value())