Skip to content

Commit b43377a

Browse files
committed
cli/command: remove deprecated DockerCliOption, InitializeOpt
These types were deprecated in 7af509c (v25.0), in favor of CLIOption, and are no longer used. This patch removes the deprecated type-aliases, and while updating, also improves the documentation for the CLIOption type. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent f18a476 commit b43377a

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

cli/command/cli_options.go

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,11 @@ import (
1111
"github.com/moby/term"
1212
)
1313

14-
// CLIOption applies a modification on a DockerCli.
14+
// CLIOption is a functional argument to apply options to a [DockerCli]. These
15+
// options can be passed to [NewDockerCli] to initialize a new CLI, or
16+
// applied with [DockerCli.Initialize] or [DockerCli.Apply].
1517
type CLIOption func(cli *DockerCli) error
1618

17-
// DockerCliOption applies a modification on a DockerCli.
18-
//
19-
// Deprecated: use [CLIOption] instead.
20-
type DockerCliOption = CLIOption
21-
22-
// InitializeOpt is the type of the functional options passed to DockerCli.Initialize
23-
//
24-
// Deprecated: use [CLIOption] instead.
25-
type InitializeOpt = CLIOption
26-
2719
// WithStandardStreams sets a cli in, out and err streams with the standard streams.
2820
func WithStandardStreams() CLIOption {
2921
return func(cli *DockerCli) error {

0 commit comments

Comments
 (0)