{"id":18246644,"url":"https://github.com/datvm/runonsave","last_synced_at":"2025-08-08T17:42:28.683Z","repository":{"id":143659129,"uuid":"253016526","full_name":"datvm/RunOnSave","owner":"datvm","description":"A simple tool to run shell command(s) whenever a file/folder changes.","archived":false,"fork":false,"pushed_at":"2020-04-04T15:33:22.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T15:16:17.982Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/datvm.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-04T14:21:47.000Z","updated_at":"2020-04-04T15:33:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"56fc07c8-8b42-4f9d-a2b2-d42847459216","html_url":"https://github.com/datvm/RunOnSave","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FRunOnSave","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FRunOnSave/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FRunOnSave/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datvm%2FRunOnSave/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datvm","download_url":"https://codeload.github.com/datvm/RunOnSave/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247912754,"owners_count":21017042,"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-11-05T09:27:08.180Z","updated_at":"2025-04-08T19:34:16.973Z","avatar_url":"https://github.com/datvm.png","language":"C#","readme":"# RunOnSave\nA simple .NET Core tool to run shell command(s) whenever a file/folder changes. I use this tool with IIS Express to have Live Reload for Cordova.\n\n![Use for Live Reloading for Cordova](https://i.imgur.com/vQcBmIX.png)\n\n# Installation\n\nYou will need to have at least [.NET Core 3.1](https://dotnet.microsoft.com/download) installed.\n\n![Install](https://i.imgur.com/SNPCiP5.png)\n\nInstall the tool globally (-g or --global) from [Nuget](https://www.nuget.org/packages/LukeVo.RunOnSave):\n\n```dotnet tool install -g LukeVo.RunOnSave```\n\nYou can check if it's successfully installed by running:\n\n```runonsave```\n\n# Usage\n\nSimply run from your shell with this syntax:\n\n```runonsave \u003cpath\u003e \u003ccommand1\u003e [\u003ccommand2\u003e [\u003ccommand...\u003e]]```\n\n![Run](https://i.imgur.com/229SS8W.png)\n\nFor example\n\n```runonsave .\\ \"echo Hello World\" \"cordova build browser\"```\n\nwill print out `Hello World` and then run the build command of `Cordova` whenever the current folder is changed.\n\nThere can only be one execution at the same time. If there is file change during the execution, they will be ignored.\n\n## Note about double quote \" on Windows\n\nOn Windows, the commands are executed by calling `cmd /c \u003cthe command\u003e`, therefore you may have trouble with the double quote. For example, if I run from PowerShell:\n\n```runonsave .\\ \"`\"D:\\Some Path\\script.bat`\"\"```\n\nThe script receive the argument as the string `\"D:\\Some Path\\script.bat\"` and then when entered into `cmd /c` it becomes:\n\n```cmd /c \"D:\\Some Path\\script.bat\"```\n\nWhich, in turn cause problem because the command is actually `D:\\Some Path\\script.bat` (`D:\\Some` filename with `Path\\script.bat` argument).\n\nTo solve it, please use double quote instead:\n\n```runonsave .\\ \"`\"`\"D:\\Some Path\\script.bat`\"`\"\"```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatvm%2Frunonsave","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatvm%2Frunonsave","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatvm%2Frunonsave/lists"}