commander-starter
commander-starter copied to clipboard
Implement beforeExit callback
Sometimes for command you would need before exit callback which would be called in case of SIGINT, Ctrl+C etc. Some example would be to sensibli close database, p2p connections etc.
We would like this in https://github.com/ChainSafe/lodestar/pull/162