Skip to content
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

mise tasks: machine-readable (json) output #2043

Closed
mkhl opened this issue May 9, 2024 · 1 comment · Fixed by #2116
Closed

mise tasks: machine-readable (json) output #2043

mkhl opened this issue May 9, 2024 · 1 comment · Fixed by #2116
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@mkhl
Copy link

mkhl commented May 9, 2024

I know tasks are experimental and this is probably coming anyway but just to be sure:
I'd love mise tasks to be able to generate machine-readable output, like the json output of mise env (so other tools can pick up the listing and invoke tasks through mise)

@mkhl mkhl added the enhancement New feature or request label May 9, 2024
@jdx
Copy link
Owner

jdx commented May 13, 2024

there are probably several commands that would benefit from this, mise plugins is another one that came up today. This is really easy to implement if someone wants to learn a bit of rust, see https://github.com/jdx/mise/blob/main/src/cli/outdated.rs for a good example on --json output.

@jdx jdx added help wanted Extra attention is needed good first issue Good for newcomers labels May 13, 2024
@mkhl mkhl mentioned this issue May 14, 2024
5 tasks
@jdx jdx closed this as completed in #2116 May 15, 2024
jdx pushed a commit that referenced this issue May 15, 2024
* tasks: add --json flag

Fixes #2043

* Render help
jdx pushed a commit that referenced this issue May 15, 2024
* tasks: add --json flag

Fixes #2043

* Render help
jdx pushed a commit that referenced this issue May 15, 2024
* tasks: add --json flag

Fixes #2043

* Render help
jdx added a commit that referenced this issue May 15, 2024
* feat(tasks): add --json flag (#2116)

* tasks: add --json flag

Fixes #2043

* Render help

* feat: map ubi -> cargo:ubi

* Commit from GitHub Actions (test)

---------

Co-authored-by: Lev Vereshchagin <levwint@gmail.com>
Co-authored-by: mise[bot] <123107610+mise-en-dev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants