arctic-hen7 / bonnie

Simple, cross-platform, and fast command aliases with superpowers.
MIT License
83 stars 6 forks source link

Add `.cleanup` #19

Open arctic-hen7 opened 3 years ago

arctic-hen7 commented 3 years ago

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.