{"id":13493488,"url":"https://github.com/ivpusic/rerun","last_synced_at":"2025-06-28T04:03:49.615Z","repository":{"id":24394408,"uuid":"27794547","full_name":"ivpusic/rerun","owner":"ivpusic","description":"Configurable recompiling and rerunning go apps when source changes","archived":false,"fork":false,"pushed_at":"2018-03-22T19:46:51.000Z","size":17,"stargazers_count":166,"open_issues_count":0,"forks_count":11,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T11:40:09.031Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ivpusic.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":"2014-12-10T00:29:54.000Z","updated_at":"2024-12-15T03:55:00.000Z","dependencies_parsed_at":"2022-09-11T06:21:48.536Z","dependency_job_id":null,"html_url":"https://github.com/ivpusic/rerun","commit_stats":null,"previous_names":["ivpusic/go-hotreload"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ivpusic/rerun","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivpusic%2Frerun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivpusic%2Frerun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivpusic%2Frerun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivpusic%2Frerun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ivpusic","download_url":"https://codeload.github.com/ivpusic/rerun/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ivpusic%2Frerun/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262371664,"owners_count":23300593,"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-07-31T19:01:15.781Z","updated_at":"2025-06-28T04:03:49.594Z","avatar_url":"https://github.com/ivpusic.png","language":"Go","readme":"rerun\n============\n[![Build Status](https://travis-ci.org/ivpusic/rerun.svg?branch=master)](https://travis-ci.org/ivpusic/rerun)\n\nRecompiling and rerunning go apps when source changes\n\n## Features\n- specify list of files/directories to ignore\n- specify list of file suffixes to watch (.go, .html, etc.)\n- provide application arguments\n- configuration using cli-flags and/or json file\n- Cross-platform support (Linux, OSX, Windows)\n\n### How to install?\n```shell\ngo get github.com/ivpusic/rerun\n```\n\n## Usage\n```\nusage: rerun [\u003cflags\u003e]\n\nFlags:\n  --help                   Show context-sensitive help (also try --help-long and --help-man).\n  -v, --verbose            Verbose mode. It will show rerun internal messages. Default: false\n  -i, --ignore=IGNORE      List of ignored files and directories.\n  -a, --args=ARGS          Application arguments.\n  -s, --suffixes=SUFFIXES  File suffixes to watch.\n  -c, --config=CONFIG      JSON configuration location\n  -t, --test               Run tests\n  --attrib                 Also listen to changes to file attributes.\n  --version                Show application version.\n```\n\nTo run with default settings just type\n```\nrerun\n```\n\n### Examples\n\n#### CLI flags\n```\nrerun -a arg1,arg2 -i bower_components,node_modules,test\n```\n\nYou have troubles? Use verbose mode (``-v`` flag)! You will see a lot of usefull information about rerun internals.\n```\nrerun -v\n```\n\n#### JSON config\nCreate json file with content, with name for example conf.json\n```\n{\n\t\"ignore\": [\"some/path/to/ignore1\", \"some/path/to/ignore2\"],\n\t\"args\": [\"dev\", \"test\"],\n\t\"suffixes\": [\".go\", \".html\", \".tpl\"],\n    \"attrib\": true\n}\n```\nand then\n```\nrerun -c conf.json\n```\n\nRerun supports default config loading: if a file with name `.rerun.json`\nexists in your project directory (from whence you execute rerun) - it will\nbe automatically loaded without a need to specify `-c` flag.\n\n#### CLI + JSON\nIf the same option is provided by cli flag and json config, one from cli will survive.\n\nExample of json config:\n```\n{\n\t\"ignore\": [\"some/path/to/ignore\"]\n}\n```\nand then\n```\nrerun -a arg1,arg2 -c conf.json\n```\n\n#### ENV variables\nYou can use environment variables inside your configurations.\n\n##### Linux/OSX\n```\n{\n    \"ignore\": [\"$GOPATH/hello/how/are/you\"]\n}\n```\n\n##### Windows\n```\n{\n    \"ignore\": [\"%GOPATH%/hello/how/are/you\"]\n}\n```\n\n#### Wildcard paths\n```\n{\n\t\"ignore\": [\"/some/path\", \"/some/other/**/*.go\"]\n}\n```\n\n#### Use with Vagrant\n\nIf you are using Vagrant as your development environment, the edited changes do not fire the notify events on the guest side - meaning that rerun cannot detect the changes.  However, if you install the vagrant-notify-forwarder plugin from https://github.com/mhallin/vagrant-notify-forwarder, you can make rerun work together with it:\n\n    vagrant plugin install vagrant-notify-forwarder\n    \nThen, watch the files with\n\n    rerun --attrib -c conf.json\n\n# License\nMIT\n","funding_links":[],"categories":["实用工具","Utilities","Go","工具库","公用事业公司","工具库`可以提升效率的通用代码库和工具`","實用工具","Utility"],"sub_categories":["Advanced Console UIs","Utility/Miscellaneous","交流","HTTP Clients","实用程序/Miscellaneous","查询语","高級控制台界面","Fail injection","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","高级控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivpusic%2Frerun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivpusic%2Frerun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivpusic%2Frerun/lists"}