Skip to content

Conversation

@roele
Copy link
Contributor

@roele roele commented Nov 23, 2025

As mentioned in #6981 recently added task fields (args, global, timeout, usage) are missing from the JSON output.


Note

Adds global, usage, timeout, and args to mise task ls --json output and updates e2e expectations.

  • CLI:
    • src/cli/tasks/ls.rs: JSON output for task ls now includes global, usage, timeout, and args fields; ordering adjusted to place file after args.
  • Tests:
    • 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.

Copilot AI review requested due to automatic review settings November 23, 2025 11:09
Copy link
Contributor

Copilot AI left a 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, and args
  • 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.

@jdx
Copy link
Owner

jdx commented Nov 24, 2025

@roele I can't for the life of me explain why build-macos is failing on this PR

@roele
Copy link
Contributor Author

roele commented Nov 24, 2025

yeah i am also puzzled by this error. no clue yet why or how this occurs.

@jdx
Copy link
Owner

jdx commented Nov 24, 2025

Do you have any other open PRs with this issue?

@roele
Copy link
Contributor Author

roele commented Nov 24, 2025

@jdx looks like a rebase fixed it...

@jdx jdx merged commit 8cbb07f into jdx:main Nov 25, 2025
26 checks passed
jdx pushed a commit that referenced this pull request Nov 26, 2025
### 📦 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)
@roele roele deleted the issues/6981 branch December 13, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants