{"id":29173324,"url":"https://github.com/stigok/go-onchange","last_synced_at":"2025-10-04T04:57:53.400Z","repository":{"id":67323384,"uuid":"210825084","full_name":"stigok/go-onchange","owner":"stigok","description":"Run a command when watched files change. (work in progress)","archived":false,"fork":false,"pushed_at":"2019-10-07T14:06:24.000Z","size":15,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T13:38:25.277Z","etag":null,"topics":["command-runner","golang","watcher"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stigok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-09-25T11:10:28.000Z","updated_at":"2019-10-08T08:36:57.000Z","dependencies_parsed_at":"2023-03-11T01:27:04.688Z","dependency_job_id":null,"html_url":"https://github.com/stigok/go-onchange","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stigok/go-onchange","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stigok%2Fgo-onchange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stigok%2Fgo-onchange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stigok%2Fgo-onchange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stigok%2Fgo-onchange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stigok","download_url":"https://codeload.github.com/stigok/go-onchange/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stigok%2Fgo-onchange/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278266894,"owners_count":25958733,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["command-runner","golang","watcher"],"created_at":"2025-07-01T14:12:48.898Z","updated_at":"2025-10-04T04:57:53.386Z","avatar_url":"https://github.com/stigok.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-onchange\n\nRun a command when watched files change.\n\nPlease report any issues you encounter.\n\n## Usage\n\n```\nRun a command when watched files change.\n\nUsage:\nonchange [options] command [args]\n\nOptions:\n  -c    clear screen before each execution\n  -d int\n        ignore too fast reruns within time limit (ms) (default 10)\n  -dry\n        show a list of watched paths and exit\n  -f string\n        file pattern regular expression (default \".+\")\n  -i    run command immediately (don't wait for first event)\n  -k    kill long-running command on new events\n  -p int\n        file poll interval (ms) (default 100)\n  -r    watch directory recursively\n  -w string\n        directory to search from (default \".\")\n```\n\n### Examples\n\nWatch all go files recursively from current directory and run `go build` on changes:\n\n```\nonchange -c -i -f \\.go$ -r go build\n```\n\nRun a built binary after it has been built, and notify when build is complete:\n\n```\nonchange -i -r bash -c \"go build \u0026\u0026 notify-send go 'Build complete' \u0026\u0026 ./foobin\"\n```\n\n## Install\n\n```\n$ go install github.com/stigok/go-onchange\n```\n\nMake sure you have `$GOPATH/bin` added to your `$PATH`.\n\n## Building\n\n```\n$ go build\n```\n\n## License\n\nThe underlying library used to watch files is written by Benjamin Radovsky (BSD 3-Clause \"New\" or \"Revised\" License).\nRead the full license text in [pkg/github.com/radovskyb/watcher/LICENSE]().\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstigok%2Fgo-onchange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstigok%2Fgo-onchange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstigok%2Fgo-onchange/lists"}