air-verse / air

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

post_cmd on Windows with paths with spaces doesn't seem to work #564

Closed Tatsujinichi closed 6 months ago

Tatsujinichi commented 6 months ago

Excuse me if I am doing this wrong, but I belive this should work:

post_cmd = ['"C:\Program Files\Google\Chrome\Application\chrome.exe" http://localhost:1323/users/1']

⇨ http server started on [::]:1323

"C:\Program Files\Google\Chrome\Application\chrome.exe" http://localhost:1323/users/1 ^C'\"C:\Program Files\Google\Chrome\Application\chrome.exe\"' is not recognized as an internal or external command, operable program or batch file. failed to execute post_cmd, error: exit status 1

Tatsujinichi commented 6 months ago

not a problem with this project, closing