{"id":22837176,"url":"https://github.com/cake-contrib/cake.doindirectory","last_synced_at":"2025-04-24T03:25:43.892Z","repository":{"id":39673100,"uuid":"61897461","full_name":"cake-contrib/Cake.DoInDirectory","owner":"cake-contrib","description":":cake: :jigsaw: Cake addin for easily executing code in a different working directory.","archived":false,"fork":false,"pushed_at":"2024-03-10T21:26:30.000Z","size":56,"stargazers_count":4,"open_issues_count":2,"forks_count":9,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-14T08:18:47.780Z","etag":null,"topics":["add-in","addin","augustoproiete","cake","cake-addin","cake-build","hacktoberfest","workdir","working-dir","working-directory"],"latest_commit_sha":null,"homepage":"https://cakebuild.net/extensions/cake-doindirectory/","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/cake-contrib.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":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-06-24T16:24:28.000Z","updated_at":"2022-05-27T23:27:23.000Z","dependencies_parsed_at":"2024-06-23T03:33:49.085Z","dependency_job_id":null,"html_url":"https://github.com/cake-contrib/Cake.DoInDirectory","commit_stats":{"total_commits":47,"total_committers":5,"mean_commits":9.4,"dds":0.4042553191489362,"last_synced_commit":"fda6d42e76c4c61b7be2b7e1c765805539fc3b51"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.DoInDirectory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.DoInDirectory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.DoInDirectory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cake-contrib%2FCake.DoInDirectory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cake-contrib","download_url":"https://codeload.github.com/cake-contrib/Cake.DoInDirectory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250553850,"owners_count":21449485,"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":["add-in","addin","augustoproiete","cake","cake-addin","cake-build","hacktoberfest","workdir","working-dir","working-directory"],"created_at":"2024-12-12T23:15:54.398Z","updated_at":"2025-04-24T03:25:43.872Z","avatar_url":"https://github.com/cake-contrib.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"| README.md |\n|:---|\n\n\u003cdiv align=\"center\"\u003e\n\n![Cake.DoInDirectory](asset/cake-doindirectory-logo.png)\n\n\u003c/div\u003e\n\n\u003ch1 align=\"center\"\u003eCake.DoInDirectory\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003e\n\nAddin for the [Cake](https://cakebuild.net) build automation system that enables you easily execute code in a different working directory.\n\n[![NuGet Version](https://img.shields.io/nuget/v/Cake.DoInDirectory.svg?color=blue\u0026style=flat-square)](https://www.nuget.org/packages/Cake.DoInDirectory/) [![Stack Overflow Cake Build](https://img.shields.io/badge/stack%20overflow-cakebuild-orange.svg?style=flat-square)](http://stackoverflow.com/questions/tagged/cakebuild)\n\n\u003c/div\u003e\n\n## Give a Star! :star:\n\nIf you like or are using this project please give it a star. Thanks!\n\n## Getting started :rocket:\n\nSimply add `Cake.DoInDirectory` in your build script by using the [`addin`](http://cakebuild.net/docs/writing-builds/preprocessor-directives#add-in-directive) directive:\n\n```csharp\n#addin \"nuget:?package=Cake.DoInDirectory\u0026version=x.y.z\"\n```\n\n_Make sure the `\u0026version=` attribute references the [latest version of Cake.DoInDirectory](https://www.nuget.org/packages/Cake.DoInDirectory/) compatible with the Cake runner that you are using. Check the [compatibility table](#compatibility) to see which version of Cake.DoInDirectory to choose_.\n\nThe `DoInDirectory` method temporarily switches to a new working directory, executes the code block you want in that directory, and switches back to the original working directory at the end.\n\n```csharp\n#addin \"nuget:?package=Cake.DoInDirectory\u0026version=x.y.z\"\n\nDoInDirectory(\"Some/Sub/Directory\", () =\u003e\n    Npm.RunScript(\"test\")\n);\n```\n\n## Compatibility\n\nCake.DoInDirectory is compatible with all [Cake runners](https://cakebuild.net/docs/running-builds/runners/), and below you can find which version of Cake.DoInDirectory you should use based on the version of the Cake runner you're using.\n\n| Cake runner     | Cake.DoInDirectory | Cake addin directive                                       |\n|:---------------:|:------------------:| ---------------------------------------------------------- |\n| 1.0.0 or higher | 4.0.0 or higher    | `#addin \"nuget:?package=Cake.DoInDirectory\u0026version=4.0.2\"` |\n| 0.33.0 - 0.38.5 | 3.3.0              | `#addin \"nuget:?package=Cake.DoInDirectory\u0026version=3.3.0\"` |\n| \u003c 0.33.0        | _N/A_              | _(not supported)_                                          |\n\n## Discussion\n\nFor questions and to discuss ideas \u0026 feature requests, use the [GitHub discussions on the Cake GitHub repository](https://github.com/cake-build/cake/discussions), under the [Extension Q\u0026A](https://github.com/cake-build/cake/discussions/categories/extension-q-a) category.\n\n[![Join in the discussion on the Cake repository](https://img.shields.io/badge/GitHub-Discussions-green?logo=github)](https://github.com/cake-build/cake/discussions)\n\n## Release History\n\nClick on the [Releases](https://github.com/cake-contrib/Cake.DoInDirectory/releases) tab on GitHub.\n\n---\n\n_Copyright \u0026copy; 2016-2021 Cake Contributors - Provided under the [MIT License](LICENSE)._\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.doindirectory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcake-contrib%2Fcake.doindirectory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcake-contrib%2Fcake.doindirectory/lists"}