-
-
Notifications
You must be signed in to change notification settings - Fork 769
fix(tasks): add missing task fields to JSON output #7044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes missing task fields in the JSON output of mise task ls --json and corrects the run_script_strings() method to respect Windows-specific run commands, as referenced in issue #6981.
Key Changes:
- Modified
run_script_strings()to return Windows-specific commands when on Windows platform - Added four missing task fields to JSON output:
global,usage,timeout, andargs - Updated e2e tests to verify the new JSON structure includes all expected fields
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/task/mod.rs | Updated run_script_strings() to handle Windows-specific run commands using conditional logic |
| src/cli/tasks/ls.rs | Added missing task fields (global, usage, timeout, args) to JSON output and removed trailing comma from last field |
| e2e/tasks/test_task_ls | Updated test expectations to include the four new fields in JSON output across all test cases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@roele I can't for the life of me explain why build-macos is failing on this PR |
|
yeah i am also puzzled by this error. no clue yet why or how this occurs. |
|
Do you have any other open PRs with this issue? |
|
@jdx looks like a rebase fixed it... |
### 📦 Registry - add blender by @lucasew in [#7014](#7014) - add vespa-cli by @buinauskas in [#7037](#7037) - fix vespa-cli order by @buinauskas in [#7038](#7038) - add scooter by @TyceHerrman in [#7039](#7039) - Prefer github backend for allure by @TobiX in [#7049](#7049) ### 🚀 Features - **(plugins)** Install a plugin from a zip file over HTTPS by @KaanYT in [#6992](#6992) - **(registry)** add tool options support for http backend by @jdx in [#7061](#7061) ### 🐛 Bug Fixes - **(core)** trim `core:` prefix in unalias_backend by @kou029w in [#7040](#7040) - **(go)** use -mod=readonly for go install by @joonas in [#7052](#7052) - **(npm)** handle v-prefixed versions correctly by @jdx in [#7062](#7062) - **(tasks)** add missing task fields to JSON output by @roele in [#7044](#7044) - semver in aqua by @lucasew in [#7018](#7018) - use the musl version if installing in Android (Termux) by @lucasew in [#7027](#7027) - empty enable_tools crash by @moshen in [#7035](#7035) ### 📚 Documentation - add MISE and USAGE syntax hl queries to neovim cookbook by @okuuva in [#7047](#7047) - use local assets for screenshots by @okuuva in [#7056](#7056) - remove GitHub issues link from roadmap by @jdx in [6897286](6897286) ### 📦️ Dependency Updates - update docker/metadata-action digest to 318604b by @renovate[bot] in [#7033](#7033) - update actions/checkout digest to 34e1148 by @renovate[bot] in [#7032](#7032) - lock file maintenance by @renovate[bot] in [#7048](#7048) ### Chore - upgrade actionlint to 1.7.9 and fix lint issues by @jdx in [#7065](#7065) ### New Contributors - @joonas made their first contribution in [#7052](#7052) - @KaanYT made their first contribution in [#6992](#6992) - @kou029w made their first contribution in [#7040](#7040) - @moshen made their first contribution in [#7035](#7035) - @buinauskas made their first contribution in [#7038](#7038) - @lucasew made their first contribution in [#7014](#7014) ## 📦 Aqua Registry Updates #### New Packages (3) - [`m7medVision/lazycommit`](https://github.com/m7medVision/lazycommit) - [`microsoft/component-detection`](https://github.com/microsoft/component-detection) - [`owenlamont/ryl`](https://github.com/owenlamont/ryl) #### Updated Packages (1) - [`sst/opencode`](https://github.com/sst/opencode)
As mentioned in #6981 recently added task fields (args, global, timeout, usage) are missing from the JSON output.
Note
Adds
global,usage,timeout, andargstomise task ls --jsonoutput and updates e2e expectations.src/cli/tasks/ls.rs: JSON output fortask lsnow includesglobal,usage,timeout, andargsfields; ordering adjusted to placefileafterargs.e2e/tasks/test_task_ls: Update JSON expectations to include the new fields for all listed tasks.Written by Cursor Bugbot for commit 1afde79. This will update automatically on new commits. Configure here.