Skip to content

Adds json response of version info#1262

Merged
iwilltry42 merged 2 commits intok3d-io:mainfrom
radiusmethod:version-output-format-json
May 17, 2023
Merged

Adds json response of version info#1262
iwilltry42 merged 2 commits intok3d-io:mainfrom
radiusmethod:version-output-format-json

Conversation

@dgershman
Copy link
Contributor

What

This adds a flag to be able to return the response of the version command and return it as JSON.

Why

I couldn't find an easier way to parse out what the latest version of K3S that K3D is using easily.

Implications

This adds new behavior and should likely not impact any existing other CLI commands. It does not modify any pkg internals. No breaking changes.

@all-contributors please add @dgershman for code

Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you! Just a small change regarding the flag name requested.

@iwilltry42
Copy link
Member

@all-contributors please add @dgershman for code

@allcontributors
Copy link
Contributor

@iwilltry42

I've put up a pull request to add @dgershman! 🎉

@dgershman dgershman force-pushed the version-output-format-json branch 4 times, most recently from a36d180 to 3861916 Compare May 17, 2023 11:29
@dgershman dgershman force-pushed the version-output-format-json branch from 3861916 to 3d0f07a Compare May 17, 2023 11:33
Copy link
Member

@iwilltry42 iwilltry42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iwilltry42
Copy link
Member

Thank you! 🙏

@iwilltry42 iwilltry42 merged commit 5e582b8 into k3d-io:main May 17, 2023
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.

2 participants