You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The buildozerprint command has several special attributes to get parts of a rule, but none of them just print the names of all of the attributes. This makes it hard to impossible to iterate over a rule's attributes in a script without doing some ad-hoc parsing of the rule.
I propose to add attrs as a new special attribute for the print command. This would print out all of the attribute names for the given rule. (I have a proposed PR on the way.)
The text was updated successfully, but these errors were encountered:
iflan
added a commit
to iflan/blaze-buildtools
that referenced
this issue
Jan 16, 2025
Before, there was no way to get a list of all of the attributes of a
rule. Now print attrs will print a list containing all of the
attribute names of a given rule.
Fixesbazelbuild#1322.
RELNOTES: "print 'attrs' //rule" prints all attributes of the rule
iflan
added a commit
to iflan/blaze-buildtools
that referenced
this issue
Jan 16, 2025
Before, there was no way to get a list of all of the attributes of a
rule. Now print attrs will print a list containing all of the
attribute names of a given rule.
Fixesbazelbuild#1322.
RELNOTES: "print 'attrs' //rule" prints all attributes of the rule
Before, there was no way to get a list of all of the attributes of a
rule. Now print attrs will print a list containing all of the
attribute names of a given rule.
Fixesbazelbuild#1322.
RELNOTES: "print 'attrs' //rule" prints all attributes of the rule
The
buildozer
print
command has several special attributes to get parts of a rule, but none of them just print the names of all of the attributes. This makes it hard to impossible to iterate over a rule's attributes in a script without doing some ad-hoc parsing of the rule.I propose to add
attrs
as a new special attribute for the print command. This would print out all of the attribute names for the given rule. (I have a proposed PR on the way.)The text was updated successfully, but these errors were encountered: