Closed PietroPasotti closed 4 months ago
crpc
script
jhack crpc unit/0 self._do_this_thing()
jhack crpc unit/0 self.model.relations[0].app.name
Fixes #135
allows jhack crpc myapp/0 --input some/file.py --event foo-relation-changed --env FOO=BAR
jhack crpc myapp/0 --input some/file.py --event foo-relation-changed --env FOO=BAR
useful if charms use event-specific (or entirely custom?) context vars to do their logic.
crpc
toscript
crpc
as a way to run simple expressions on the charm.jhack crpc unit/0 self._do_this_thing()
orjhack crpc unit/0 self.model.relations[0].app.name
Fixes #135
allows
jhack crpc myapp/0 --input some/file.py --event foo-relation-changed --env FOO=BAR
useful if charms use event-specific (or entirely custom?) context vars to do their logic.