{"id":16798578,"url":"https://github.com/vojtechvitek/rerun","last_synced_at":"2026-02-27T12:08:15.741Z","repository":{"id":57485362,"uuid":"88786612","full_name":"VojtechVitek/rerun","owner":"VojtechVitek","description":"Re-run command on file system changes","archived":false,"fork":false,"pushed_at":"2022-12-29T17:32:13.000Z","size":1727,"stargazers_count":24,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T19:55:02.147Z","etag":null,"topics":["change","command","file","filewatcher","fsnotify","inotify","run"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VojtechVitek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-19T20:13:01.000Z","updated_at":"2024-05-05T03:16:31.000Z","dependencies_parsed_at":"2023-01-31T09:31:09.736Z","dependency_job_id":null,"html_url":"https://github.com/VojtechVitek/rerun","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojtechVitek%2Frerun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojtechVitek%2Frerun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojtechVitek%2Frerun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VojtechVitek%2Frerun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VojtechVitek","download_url":"https://codeload.github.com/VojtechVitek/rerun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244897753,"owners_count":20528286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["change","command","file","filewatcher","fsnotify","inotify","run"],"created_at":"2024-10-13T09:26:14.039Z","updated_at":"2026-02-27T12:08:14.080Z","avatar_url":"https://github.com/VojtechVitek.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"rerun: re-run command on file system changes\n============================================\n\nCredit for this library goes to https://github.com/VojtechVitek/rerun\n\nLightweight file-watcher that re-runs given command on FS changes. It has simple CLI and optional config file. By default, it uses 200ms delay, which gives enough time for tools like git to update all directories/files within repository before killing the old process (when you switch branches etc).\n\n#### In development. Only CLI MVP works right now.\n\n# Usage\n### `rerun [-watch DIR...] [-ignore DIR...] -run COMMAND [ARG...]`\n\n#### Examples:\n```bash\n$ rerun -watch ./ -ignore vendor bin '*.md' -run go run ./cmd/rerun/main.go\n```\n```bash\n$ rerun -watch ./ -ignore vendor bin -run sh -c 'go build -i -o ./bin/rerun ./cmd/rerun/main.go \u0026\u0026 ./bin/rerun'\n```\n```bash\n$ cd tests \u0026\u0026 rerun -watch '*_test.go' ../pkg -ignore vendor bin -run go test -run=Test\n```\n\n# Installation\n\n```bash\ngo get -u github.com/goware/rerun/cmd/rerun\n```\n*You might need to [download Go](https://golang.org/dl/) first.*\n\n\n```yaml\napi:\n  watch:\n    - cmd\n    - *.go\n  ignore:\n    - bin\n    - *_test.go\n  cmd:\n    - go run cmd/api/main.go -flags args\n\ntest-login:\n  name: Test login\n  watch:\n    - tests/e2e\n    - services/auth\n    - data\n  run:\n    - go test -run=Login\n```\n\nUses [fsnotify](https://github.com/fsnotify/fsnotify) behind the scenes, so technically it should work on most platforms including Linux, Mac OS and Windows.\n\n# License\n\nLicensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvojtechvitek%2Frerun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvojtechvitek%2Frerun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvojtechvitek%2Frerun/lists"}