{"id":15691012,"url":"https://github.com/olebedev/on","last_synced_at":"2025-05-08T00:45:55.402Z","repository":{"id":57485900,"uuid":"57377823","full_name":"olebedev/on","owner":"olebedev","description":"CLI for fsnotify","archived":false,"fork":false,"pushed_at":"2020-01-28T04:46:24.000Z","size":653,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-08T00:45:09.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olebedev.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":"2016-04-29T10:51:43.000Z","updated_at":"2025-04-12T03:07:33.000Z","dependencies_parsed_at":"2022-09-10T22:23:17.046Z","dependency_job_id":null,"html_url":"https://github.com/olebedev/on","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olebedev%2Fon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olebedev","download_url":"https://codeload.github.com/olebedev/on/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252978681,"owners_count":21834913,"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-03T18:18:51.510Z","updated_at":"2025-05-08T00:45:55.374Z","avatar_url":"https://github.com/olebedev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# on\n\nCommand line interface for [fsnotify](https://github.com/fsnotify/fsnotify).\n\nIt watches the files and writes the event right into _stdout_. Pretty useful to complex bash pipe's manipulation.\n\n### Usage\n\nInstall: `go get github.com/olebedev/on` or compiled binaries at [releases](https://github.com/olebedev/on/releases) page.\n\n```\n$ on --help\nNAME:\n   on - cli for fsnotify\n\nUSAGE:\n   on [options] [path]\n\n   Path could be mix of folders and filepaths, default is '.'.\n   Regular usecase is watch the file's changes and execute some\n   bash script or command line tool. It could be done in this way:\n\n   on | xargs -n1 -I{} \u003cprogram\u003e\n\nVERSION:\n   0.1.0\n\nAUTHOR(S):\n   olebedev \u003cole6edev@gmail.com\u003e\n\nCOMMANDS:\nGLOBAL OPTIONS:\n   --template, -t \"{{.Name}}\" output template to render received event, see: https://godoc.org/gopkg.in/fsnotify.v1#Event\n   --mask, -m \"15\"    event's bitwise mask, see: https://godoc.org/gopkg.in/fsnotify.v1#Op\n   --help, -h     show help\n   --version, -v    print the version\n```\n\n### License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folebedev%2Fon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folebedev%2Fon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folebedev%2Fon/lists"}