gravityblast / fresh

Build and (re)start go web apps after saving/creating/deleting source files.
MIT License
3.78k stars 381 forks source link

Allow custom command before and after re-build process #87

Open 1yzz opened 6 years ago

1yzz commented 6 years ago

execute command such as swag init and so on

gmccue commented 6 years ago

Could you describe your use-case a bit more? What would your ideal configuration for this feature look like? Do you just want to add a pre and post hook to the build?

1yzz commented 6 years ago

just like pre or post triggers at each time fresh re-build. Using this to re-generate my Swagger docs which embedded inside source code

arthurlataks commented 5 years ago

+1 For the hooks - in my case I'm interested more in the post hook, to shoot out tput bel for me to be notified that build is done, since build takes couple secs, which Im using to continue reading something or w/else

AgentCosmic commented 5 years ago

I actually wrote a tool which can overcome this issue. You might want to take a look at https://github.com/AgentCosmic/xnotify

nilesh-bamne commented 2 years ago

Any update on this?