Allow to specify the output format of func version via --output#3280
Conversation
|
/cc @lkingland |
Allows to print the output from `func version` as `json` or `yaml` too
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3280 +/- ##
==========================================
+ Coverage 54.56% 54.57% +0.01%
==========================================
Files 167 167
Lines 19473 19512 +39
==========================================
+ Hits 10625 10649 +24
- Misses 7789 7803 +14
- Partials 1059 1060 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
You may need to adjust tests. |
05a4aa8 to
4b0265c
Compare
Just did it in 4b0265c. Not sure, why it had an empty line at the end before 🤷 |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: creydr, matejvasek The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
func versionasjsonoryamltoo (in case of json/yaml, it will always be verbose output)/kind enhancement
This can be useful, when we want to add the latest middleware versions in the output of
func versiontoo.Hint for reviewers:
The main change is in 83c736e (and 4b0265c). d5fd435 was only a refactoring moving the
Versionstruct to the version.go file. Thus the whole PR can be a bit "noisy".Release Note