canonical / is-charms-contributing-guide

The code contributing guide for the IS charms team
Apache License 2.0
2 stars 1 forks source link

What to do with bash commands versus what to do with Python functions #31

Closed jdkandersson closed 1 year ago

jdkandersson commented 1 year ago

For our charms it is usually possible to either use bash or use Python to, for example, check a file or make some changes. The proposal is to prefer Python over bash because it is easier to test, more portable and usually easier to read.

weiiwang01 commented 1 year ago

The bash scripts are mostly due to the limitation of podspec pattern. Most of them are not needed in the sidecar version of the charm.