air-verse / air

☁️ Live reload for Go apps
GNU General Public License v3.0
16.38k stars 772 forks source link

Pre & Post commands #461

Closed kareemmahlees closed 9 months ago

kareemmahlees commented 10 months ago

closes #453

New Features

New behavior

kareemmahlees commented 10 months ago

@xiantang could you review the changes made until now

xiantang commented 10 months ago

So, this time is it in support of the pre command?

kareemmahlees commented 10 months ago

So, this time is it in support of the pre command?

Yes, will work on the post command shortly.

xiantang commented 10 months ago

any update?

kareemmahlees commented 10 months ago

Sorry for the delay, I updated the tests hoping that they do a little more this time, unfortunately, I can't ensure that the tests are passing because there is a problem with t.tempDir on Windows specifically 😢

xiantang commented 10 months ago

The latest version of GO that I remember has already been fixed. You can try updating your GO version

kareemmahlees commented 10 months ago

I already have the latest version ( 1.21 ) installed, Sorry for being not so helpful but I can start working on post cmd if that's okay!

xiantang commented 10 months ago

Keep going

kareemmahlees commented 9 months ago

sorry for the delay, been busy at work. @xiantang could you check the latest changes?

xiantang commented 9 months ago

can let me check

On Wed, Sep 20, 2023 at 12:57 Kareem Ebrahim @.***> wrote:

sorry for the delay, been busy at work. @xiantang https://github.com/xiantang could you check the latest changes?

— Reply to this email directly, view it on GitHub https://github.com/cosmtrek/air/pull/461#issuecomment-1726970253, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHB3TYDMLYVHOZMZF4SLGLX3JZVDANCNFSM6AAAAAA4DOBUGI . You are receiving this because you were mentioned.Message ID: @.***>

xiantang commented 9 months ago

LGTM merged!

xiantang commented 9 months ago

thank you!

jackielii commented 3 months ago

Hmm, I thought post_cmd would run each time after cmd is restarted... it's surprising to call it post_cmd, should've been before_exit