{"id":16930865,"url":"https://github.com/dnephin/filewatcher","last_synced_at":"2025-08-31T11:35:06.288Z","repository":{"id":53779885,"uuid":"48818850","full_name":"dnephin/filewatcher","owner":"dnephin","description":"A command line tool to execute commands when files are modified.","archived":false,"fork":false,"pushed_at":"2021-03-14T17:55:18.000Z","size":59,"stargazers_count":51,"open_issues_count":3,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-18T11:03:51.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnephin.png","metadata":{"files":{"readme":"README.rst","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":"2015-12-30T20:46:19.000Z","updated_at":"2024-11-29T11:43:02.000Z","dependencies_parsed_at":"2022-09-11T21:30:24.213Z","dependency_job_id":null,"html_url":"https://github.com/dnephin/filewatcher","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnephin%2Ffilewatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnephin%2Ffilewatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnephin%2Ffilewatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnephin%2Ffilewatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnephin","download_url":"https://codeload.github.com/dnephin/filewatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244951426,"owners_count":20537385,"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":[],"created_at":"2024-10-13T20:42:41.840Z","updated_at":"2025-03-22T11:31:19.759Z","avatar_url":"https://github.com/dnephin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nFile Watcher\n============\n\nFile Watcher uses https://github.com/go-fsnotify/fsnotify to watch the\nfilesystem and execute a command when a file changes.\n\nInstall\n-------\n\n.. code::\n\n    go get github.com/dnephin/filewatcher\n\nExamples\n--------\n\n**Run go tests**\n\nRun go tests for a package when a file is modified, exclude vim swap files.\n\n.. code::\n\n    filewatcher -x '**/*.swp' -x vendor/ -x .git go test './${dir}'\n\n\nUsage\n-----\n\nSee ``filewatcher --help``\n\n\n**Excludes**\n\nFile globbing patterns are used to match files, with one addition.\nSee https://golang.org/pkg/path/filepath/#Match for the standard file matching\nrules.  Exclude paths may also use a ``**/`` prefix, which matches the pattern\nagainst any directory. This may be used to ignore files with a specific\nextension that may occur in any directory in the hierarhcy.\n\n**Commands**\n\nCommands may include variables in the form ``${variable}`` which will be\nreplaced with a value based on the file that was modified. Supported\nvariables are:\n\n* ``filepath`` - the relative path to the file that changed\n* ``dir`` - the directory of the file that changed\n* ``relative_dir`` - the directory of the file that changes with a ./ prefix\n\nThese values are also set as environment variables for the process:\n\n* ``TEST_FILENAME`` - the relative path to the file that changed\n* ``TEST_DIRECTORY`` - the relative path to the directory of the file that\n  changed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnephin%2Ffilewatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnephin%2Ffilewatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnephin%2Ffilewatcher/lists"}