Pass --chaos status to abra.sh --local commands
#571
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For e.g. the commands in Mastodon's
abra.shfor generating secrets, invocations ofabrafail during a--chaosrun, even with the flags seemingly in the right place:An alternative could be to unconditionally pass
--chaosin invocations ofabrainabra.shscripts, which might be less work¹, but would be slightly inconsistent withabra's "bail on any forbidden-chaos state" behaviour.Setting e.g. an
ABRA_IS_CHAOSenvironment variable when loading the localabra.shfile would allow shell functions to conditionally insert--chaosdepending on whether it was specified on theabra app cmd --localcommand-line.¹12 recipes seem to have
abra.shscripts which callabra:This seems like a valid use case and using an env var for like a good solution
I would prefer
ABRA_CHAOSinstead ofABRS_IS_CHAOS