make debug-on-exit usable standalone
Some improvements were done in !2174 (merged) to have debug-on-exit be usable standalone
However, some work remains:
- the script can't be run as an executable (missing
#!/usr/bin/bash
) - the script will dump some Secrets, this is safe only in CI and should not be done unless the script is ran in a CI context
- the script should be easy to use from a top-level tool - in !1756 (closed) the
dump-sylva-state.sh
name was proposed - we could have adump-sylva-state.sh
script side-by-side withapply.sh
and others - when run by an end-user/ops the script should be much less verbose (not useful to
tee
everything)
(Note that some of the above was started in !1756 (closed) by @glambrouin)
/cc @feleouet