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

Add example get API version #1502

Merged
merged 1 commit into from Apr 30, 2022
Merged

Add example get API version #1502

merged 1 commit into from Apr 30, 2022

Conversation

Kilo59
Copy link
Contributor

@Kilo59 Kilo59 commented Nov 7, 2018

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)

@GordonTheTurtle
Copy link

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ 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-io
Copy link

codecov-io commented Nov 7, 2018

Codecov Report

Merging #1502 into master will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            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-commenter
Copy link

codecov-commenter commented Apr 30, 2022

Codecov Report

Merging #1502 (6cee608) into master (b3ab7c9) will increase coverage by 0.00%.
The diff coverage is n/a.

@@           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     

Copy link
Member

@thaJeztah thaJeztah left a 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

@thaJeztah thaJeztah merged commit 9f8ccfc into docker:master Apr 30, 2022
@thaJeztah thaJeztah added this to the 22.04.0 milestone Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants