Skip to content

Commit e9c189e

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]> (cherry picked from commit 0270b2d) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 3755161 commit e9c189e

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
@@ -48,7 +48,6 @@ type Cli interface {
4848
Apply(ops ...CLIOption) error
4949
config.Provider
5050
ServerInfo() ServerInfo
51-
DefaultVersion() string
5251
CurrentVersion() string
5352
ContentTrustEnabled() bool
5453
BuildKitEnabled() (bool, error)
@@ -90,6 +89,8 @@ type DockerCli struct {
9089
}
9190

9291
// DefaultVersion returns [api.DefaultVersion].
92+
//
93+
// Deprecated: this function is no longer used and will be removed in the next release.
9394
func (*DockerCli) DefaultVersion() string {
9495
return api.DefaultVersion
9596
}

0 commit comments

Comments
 (0)