Skip to content

Commit 0270b2d

Browse files
committed
cli/command: deprecate DockerCli.DefaultVersion
This function was used internally, but is no longer used. There are no known users of this method, so already removing it from the Cli interface. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 903e9b3 commit 0270b2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/command/cli.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ type Cli interface {
4747
Apply(ops ...CLIOption) error
4848
config.Provider
4949
ServerInfo() ServerInfo
50-
DefaultVersion() string
5150
CurrentVersion() string
5251
ContentTrustEnabled() bool
5352
BuildKitEnabled() (bool, error)
@@ -89,6 +88,8 @@ type DockerCli struct {
8988
}
9089

9190
// DefaultVersion returns [client.MaxAPIVersion].
91+
//
92+
// Deprecated: this function is no longer used and will be removed in the next release.
9293
func (*DockerCli) DefaultVersion() string {
9394
return client.MaxAPIVersion
9495
}

0 commit comments

Comments
 (0)