chef / chef-web-docs

All The Documentation
https://docs.chef.io
Other
131 stars 438 forks source link

Documentation for `bash` and other similar commands #4251

Open matthewhively opened 6 months ago

matthewhively commented 6 months ago

https://github.com/chef/chef-web-docs/blob/7ec349e7de03d5e69c71ec1c90b318425b35876c/data/infra/resources/bash.yaml#L50-L64

Its not clear how code interacts with command attributes if at all. It appears that bash is a wrapper around script and script inherits attributes from the more generic execute resource.

1) Is command inherited from higher scope resource? Or is it overridden to act differently by bash specifcally? 2) if code is required, what different purpose does command serve? 3) if this is just a wrapper around the more generic script perhaps this should be stated clearly and make references to script instead of execute resource?