* feat: silent flag in .air.toml, suppressing all air prints
useful if the app being watched has structured outputs that are being
piped into subsequent program/s.
* update: add silent to air_example.toml
* Use web page address when making request to reload proxy
Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>
* Create event source with just a path because browser can handle address on its own.
Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>
---------
Signed-off-by: Alexandra Fishova <yopoyka@yopoyka.com>
This addresses two bugs:
1) The loop could exit with an error condition present and fail to
inform the user.
2) On Windows 11, syscall.ECONNREFUSED is not returned. Instead we
receive net.OpError with a message similar to:
"unable to reach app: Get "http://localhost:7000/": dial tcp [::1]:7000: connectex: No connection could be made because the target machine actively refused it."
The Fix:
Since the retry loop is short; just 1 second maximum, we retry until no
error happens. If an error does occur, we inform the user.
* hold cleanup until procKilledCh signal
* signal to procKilledChan in existing deferred func
* without this can't exit when non zero exit code
it seems like `os.Exit(state.ExitCode())` belongs here... but unclear on intent of `e.config.Build.Rerun`
This at least lets you ctrl+c out of error condition instead of killing pid via external means.
* Revert "without this can't exit when non zero exit code"
This reverts commit fec348c04b755ff4571880191692081bc6b81841.
* use cleanup
* fix test case rerun
* upgrade gomod version
* remove unused `WaitGroup`
---------
Co-authored-by: Seth Brasile <seth.brasile@gmail.com>
* chore: fix typo in code
* chore: fix tool names or registered trademarks
Docker
Codecov
Bash
Zsh
Also HTML is an acronym, so it has to be in uppercase
* documentation: fix Markdown fenced block identifier
some were using sh, zsh, most where using bash, some were missing
I updated to use shell everywhere
* fix: fix linter
* feat: add live proxy
* fix: fix live reload script injection for pages with partial updates
* fix: fix proxy for post method and include more tests
* fix: fix reload script
* Add fatal format message
---------
Co-authored-by: Neemias Almeida <ndalmeida@bol.com>
Co-authored-by: xiantang <zhujingdi1998@gmail.com>
* add base golangci-lint
* fix linting errors: unused var t, unexported-return
```
runner/util_test.go:237:34: unused-parameter: parameter 't' seems to be unused, consider removing or renaming it as _ (revive)
func TestGetStructureFieldTagMap(t *testing.T) {
```
```
main.go:54:1: exported function GetVersionInfo should have comment or be unexported
main.go:54:23: exported func GetVersionInfo returns unexported type main.versionInfo, which can be annoying to use
```
The old version did not print out any log.print or other log outputs under windows (in powershell/cmd/git bash) for us.
After that change it worked. It is just a hacky solution currently. Happily awaiting feedback if this is actually a soultion.
Thanks
* Report success or exit code from run step.
* Editorconfig need not be root.
* change log message
* rollback editorconfig
---------
Co-authored-by: xiantang <zhujingdi1998@gmail.com>
* feat: add Chinese translation for README.md
- Add a new file `README-zh_tw.md`
- Add a new line in `README.md` to include a link to the new file `README-zh_tw.md`
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* docs: update README file with improved Chinese translation and updated tool description
- Modify the Chinese translation of the README file
- Update the description of the Air tool in the README file
- Change the wording in the README file regarding the preferred installation method
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
---------
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Fix a typo in the README.md file
- Update the command for installing air
- Add a new example for running a project in Docker
- Update the link for "Buy Me A Coffee" in the README.md file
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>