{"id":13687620,"url":"https://github.com/3noch/twitch-cli","last_synced_at":"2026-03-10T14:31:00.975Z","repository":{"id":141674118,"uuid":"95996075","full_name":"3noch/twitch-cli","owner":"3noch","description":"CLI to watch file patterns and run commands when they change","archived":false,"fork":false,"pushed_at":"2018-02-18T06:36:45.000Z","size":26,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-14T04:25:02.711Z","etag":null,"topics":["cli","command-line-tool","file-system","haskell","inotify","inotifywait"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/3noch.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-07-02T01:33:31.000Z","updated_at":"2020-12-14T09:48:25.000Z","dependencies_parsed_at":"2024-01-14T18:09:26.156Z","dependency_job_id":null,"html_url":"https://github.com/3noch/twitch-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3noch/twitch-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Ftwitch-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Ftwitch-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Ftwitch-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Ftwitch-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3noch","download_url":"https://codeload.github.com/3noch/twitch-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3noch%2Ftwitch-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30337171,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T12:41:07.687Z","status":"ssl_error","status_checked_at":"2026-03-10T12:41:06.728Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli","command-line-tool","file-system","haskell","inotify","inotifywait"],"created_at":"2024-08-02T15:00:57.626Z","updated_at":"2026-03-10T14:31:00.953Z","avatar_url":"https://github.com/3noch.png","language":"Haskell","funding_links":[],"categories":["Haskell"],"sub_categories":[],"readme":"# Twitch CLI\n\n[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)\n\nA simple command-line tool to watch one or more [Glob patterns](https://hackage.haskell.org/package/Glob/docs/System-FilePath-Glob.html#v:compile) and run commands when they change. Essentially this is a more ergonomic version of [`inotifywait`](https://linux.die.net/man/1/inotifywait).\n\nThe CLI UI of this tool is inspired by the [twitch](https://github.com/jfischoff/twitch) library, hence the name.\n\nFor a more advanced tool with similar features, checkout [steeloverseer](https://github.com/schell/steeloverseer). steeloverseer allows for more complex rules at the cost of a slightly less friendly interface.\n\n\n## Usage\n\n```bash\ntwitch --help\n\n# Watches for .pyc files at any depth and deletes\n# them when created or modified.\ntwitch --debounce 0 -p '**/*.pyc:rm $FILE'\n\n# Watches .cabal files and reconfigures when they change.\n# Also watches .hs files at any depth in the src folder\n# and rebuilds the project when they change.\ntwitch -p '*.cabal:cabal configure \u0026\u0026 cabal build' -p 'src/**/*.hs:cabal build'\n\n# Watches all .log files in /var/log and prints their last line\n# when they change.\ntwitch --debounce 0 -p '/var/log/*.log:tail -n 1 $FILE'\n```\n\n\n## Development\n\nBuild with one of:\n\n  * `stack build`\n  * `nix-shell --run 'cabal build'`\n  * `nix-build`\n\nDevelop with one of:\n\n  * `stack ghci`\n  * `nix-shell --run 'cabal repl'`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Ftwitch-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3noch%2Ftwitch-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3noch%2Ftwitch-cli/lists"}