From 7cfecafdbd84c0f25b8a6c09a4cef72616968917 Mon Sep 17 00:00:00 2001 From: Diogo Date: Fri, 23 Aug 2024 17:59:31 -0300 Subject: Add option `cwd` to running tasks (#83) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🎨 chore: removing settings that are deprecated Reference: https://github.com/microsoft/vscode-python/wiki/Migration-to-Python-Tools-Extensions#existing-python-tools-extensions * 👷 build: add `.venv` folder to `.gitignore` * ✨ feat: new property 'workdir' for tasks * 🎨 chore: add "cwd" to error messages * ✨ feat: new property `dirpath` of `PyProject` * ✨ feat: new method to get workdir in `TaskRunner` * 🐞 fix: allow for absolute paths * 🐞 fix: the task cwd should takes precedence * 📄 docs: update `README.md` * Update README.md Co-authored-by: Roy Sommer * rename variable `working_dir` into `cwd_as_path` to emphasize what it's really used for suggestion: https://github.com/taskipy/taskipy/pull/83/files#r1676391148 * assert that `cwd` is a string, and throw if it's not * 👷 build: add settings to test in VSCode * 🐞 fix: add task exec when testing on windows * ✅ test: add new `SetCWDTestCase` * ✅ test: fix error message in test case * ✏️ typo: in fixture name * 💄 style: format code * Update settings.json --------- Co-authored-by: Roy Sommer --- task.bat | 1 + 1 file changed, 1 insertion(+) create mode 100644 task.bat (limited to 'task.bat') diff --git a/task.bat b/task.bat new file mode 100644 index 0000000..3be1261 --- /dev/null +++ b/task.bat @@ -0,0 +1 @@ +python %~dp0taskipy\cli.py %* -- cgit v1.2.3