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
Add example get API version #1502
Conversation
Please sign your commits following these rules: $ git clone -b "patch-1" git@github.com:Kilo59/cli.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
Codecov Report
@@ Coverage Diff @@
## master #1502 +/- ##
==========================================
- Coverage 55.23% 55.14% -0.09%
==========================================
Files 289 289
Lines 19374 19371 -3
==========================================
- Hits 10702 10683 -19
- Misses 7977 7997 +20
+ Partials 695 691 -4 |
Getting the client API version is non-intuitive. Other keys follow the json example or the version output, however `'{{.Client.ApiVersion}}'` does not work, nor does `'{{.Client.APIversion}}'` Signed-off-by: Gabriel Gore <gabgore@cisco.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Codecov Report
@@ Coverage Diff @@
## master #1502 +/- ##
=======================================
Coverage 59.47% 59.48%
=======================================
Files 285 287 +2
Lines 24179 24182 +3
=======================================
+ Hits 14381 14385 +4
Misses 8931 8931
+ Partials 867 866 -1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the loooong wait; looks like I forgot about this one. I did a quick rebase, and changed the version to be a bit more current.
LGTM
Getting the client API version is non-intuitive.
Other keys follow the json example or the version output, however
'{{.Client.ApiVersion}}'
does not work, nor does'{{.Client.APIversion}}'
- What I did
Added an example to the
docker version
docs- How I did it
- How to verify it
- Description for the changelog
Added an example for getting Client API version
- A picture of a cute animal (not mandatory but encouraged)