File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,12 +107,3 @@ func WithAPIClient(c client.APIClient) CLIOption {
107107 return nil
108108 }
109109}
110-
111- // WithContext sets the base context for the cli
112- // This is used internally for operations may require a context to propagate tracing.
113- func WithContext (ctx context.Context ) CLIOption {
114- return func (cli * DockerCli ) error {
115- cli .baseCtx = ctx
116- return nil
117- }
118- }
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ func newDockerCommand(dockerCli *command.DockerCli) *cli.TopLevelCommand {
8686
8787 ctx , _ := otel .Tracer ("" ).Start (cmd .Context (), name )
8888 cmd .SetContext (ctx )
89- _ = dockerCli .Apply (command .WithContext (ctx ))
89+ _ = dockerCli .Apply (command .WithBaseContext (ctx ))
9090 return nil
9191 },
9292 PersistentPostRun : func (cmd * cobra.Command , args []string ) {
You can’t perform that action at this time.
0 commit comments