mirror of https://github.com/docker/cli.git
Merge pull request #4810 from thaJeztah/remove_deprecated_cliopts
cli/command: remove deprecated DockerCliOption, InitializeOpt
This commit is contained in:
commit
69a4fcc3bb
|
@ -11,19 +11,11 @@ import (
|
||||||
"github.com/moby/term"
|
"github.com/moby/term"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CLIOption applies a modification on a DockerCli.
|
// CLIOption is a functional argument to apply options to a [DockerCli]. These
|
||||||
|
// options can be passed to [NewDockerCli] to initialize a new CLI, or
|
||||||
|
// applied with [DockerCli.Initialize] or [DockerCli.Apply].
|
||||||
type CLIOption func(cli *DockerCli) error
|
type CLIOption func(cli *DockerCli) error
|
||||||
|
|
||||||
// DockerCliOption applies a modification on a DockerCli.
|
|
||||||
//
|
|
||||||
// Deprecated: use [CLIOption] instead.
|
|
||||||
type DockerCliOption = CLIOption
|
|
||||||
|
|
||||||
// InitializeOpt is the type of the functional options passed to DockerCli.Initialize
|
|
||||||
//
|
|
||||||
// Deprecated: use [CLIOption] instead.
|
|
||||||
type InitializeOpt = CLIOption
|
|
||||||
|
|
||||||
// WithStandardStreams sets a cli in, out and err streams with the standard streams.
|
// WithStandardStreams sets a cli in, out and err streams with the standard streams.
|
||||||
func WithStandardStreams() CLIOption {
|
func WithStandardStreams() CLIOption {
|
||||||
return func(cli *DockerCli) error {
|
return func(cli *DockerCli) error {
|
||||||
|
|
Loading…
Reference in New Issue