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

The version command does not support JSON output #4547

Closed
1977er opened this issue Oct 29, 2023 · 2 comments
Closed

The version command does not support JSON output #4547

1977er opened this issue Oct 29, 2023 · 2 comments
Labels
help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature enhancement improving existing features

Comments

@1977er
Copy link

1977er commented Oct 29, 2023

Output of restic version

restic 0.16.1 compiled with go1.21.3 on linux/amd64

What should restic do differently? Which functionality do you think we should add?

Something like

> restic version --json
[{"version":"0.16.1"},{"go_version":"1.21.3",{"target":"linux/amd64"}}]

What are you trying to do? What problem would this solve?

Automation

Did restic help you today? Did it make you happy in any way?

Great tool. Love it.

@MichaelEischer MichaelEischer added type: feature enhancement improving existing features help: wanted help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated labels Oct 30, 2023
@MichaelEischer
Copy link
Member

Sounds like a good idea. But the json output should be far less nested and rather look similar to the following: {"version":"0.16.1", "go_version":"1.21.3", "go_target":"linux/amd64"}

@MichaelEischer
Copy link
Member

Implemented in #4553

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help: minor complexity less complex issue, good for beginners that want a little challenge yet not too complicated help: wanted type: feature enhancement improving existing features
Projects
None yet
Development

No branches or pull requests

2 participants