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

Support machine-readable output for "kn version" #513

Closed
rhuss opened this issue Nov 21, 2019 · 3 comments · Fixed by #709
Closed

Support machine-readable output for "kn version" #513

rhuss opened this issue Nov 21, 2019 · 3 comments · Fixed by #709
Assignees
Labels
kind/feature New feature or request
Milestone

Comments

@rhuss
Copy link
Contributor

rhuss commented Nov 21, 2019

In what area(s)?

Describe the feature:

In order to interoperate nicely with tooling that calls kn and in the spirit of our other commands we should support machine-readable output in addition to human-readable output for kn version.

I.e. I think having a kn version -o json return something like

{
  "version": "v0.10.0",
  "date": "2019-11-21 21:06:36",
  "commit": "e07b5a9",
  "apis": {
     "serving": [
        "serving.knative.dev/v1alpha1"
     ],
     "eventing": [
        "sources.eventing.knative.dev/v1alpha1"
     ]
  } 
}

In the future there might be server version (i.e. which APIs are supported), included here as well.

@rhuss rhuss added the kind/feature New feature or request label Nov 21, 2019
@navidshaikh navidshaikh added this to the v0.11.0 milestone Nov 22, 2019
@zhanggbj
Copy link

/assign

@rhuss rhuss modified the milestones: v0.11.0, v0.12.0 Dec 19, 2019
@navidshaikh navidshaikh modified the milestones: v0.12.0, v0.13.0 Feb 4, 2020
@navidshaikh
Copy link
Collaborator

@zhanggbj are you working on this?

@navidshaikh
Copy link
Collaborator

/assign

navidshaikh added a commit to navidshaikh/client that referenced this issue Mar 9, 2020
knative-prow-robot pushed a commit that referenced this issue Mar 9, 2020
* feat(version): Add JSON/YAML output format for version command

 Fixes #513

* Loop for supported apis in template
dsimansk pushed a commit to dsimansk/client that referenced this issue Nov 6, 2024
…e-v1.15

[release-v1.15] Add Konflux configurations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants