Description
A new property .cleanup next to shell configuration that specifies a command/series of commands to run after the normal command is done. This would allow for example starting a database and then running cargo watch on a server, and then shutting down the database when the command ends. We should also catch termination signals and run the cleanup commands then if possible.
Reasoning
This would allow greater command flow, and the setup and takedown of multiple services.
Are you willing to work on an implementation of this?
Yes.
Description A new property
.cleanup
next to shell configuration that specifies a command/series of commands to run after the normal command is done. This would allow for example starting a database and then runningcargo watch
on a server, and then shutting down the database when the command ends. We should also catch termination signals and run the cleanup commands then if possible.Reasoning This would allow greater command flow, and the setup and takedown of multiple services.
Are you willing to work on an implementation of this? Yes.