"May be a either a string or an actions.args() object." is all it says about passing an args object to content here. What does that actually do though? How are the args processed? What is the intended use case?
The wording could be clarified to indicate that the args is processed as usual and the resulting string becomes the file contents (as opposed to the arguments of some command line).
Documentation URL: https://docs.bazel.build/versions/master/skylark/lib/actions.html#write
"May be a either a string or an actions.args() object." is all it says about passing an args object to
content
here. What does that actually do though? How are the args processed? What is the intended use case?