<div dir="ltr">Hi,<div><br></div><div>Snapd does not presently have support for getting and setting individual snap configurations. We needed to this for the <a href="https://launchpad.net/cassandra-charm">Juju charm of Cassandra</a> <span style="line-height:1.5">(set `edition: apache-snap`)</span><span style="line-height:1.5">, so I've come up with three simple helpers:</span></div><div><ul><li><span style="line-height:1.5"><a href="https://github.com/evandandrea/cassandra-snap/blob/master/config-get">config-get</a></span><br></li><li><span style="line-height:1.5"><a href="https://github.com/evandandrea/cassandra-snap/blob/master/config-set">config-set</a></span><br></li><li><span style="line-height:1.5"><a href="https://github.com/evandandrea/cassandra-snap/blob/master/env-get">env-get</a></span><br></li></ul></div><div>These save us from having to hardcode paths in the charm. In the case of env-get, it's useful to pull out SNAP_DATA when constructing a config file that embeds absolute paths.</div><div><br></div><div>Your feedback is of course welcome, and do feel free to pull these into your own snaps as needed.</div></div>