MCPcopy Index your code
hub / github.com/coder/coder / WithRemoveExistingContainer

Function WithRemoveExistingContainer

agent/agentcontainers/devcontainercli.go:120–124  ·  view source on GitHub ↗

WithRemoveExistingContainer is an option to remove the existing container.

()

Source from the content-addressed store, hash-verified

118// WithRemoveExistingContainer is an option to remove the existing
119// container.
120func WithRemoveExistingContainer() DevcontainerCLIUpOptions {
121 return func(o *DevcontainerCLIUpConfig) {
122 o.Args = append(o.Args, "--remove-existing-container")
123 }
124}
125
126// WithUpOutput sets additional stdout and stderr writers for logs
127// during Up operations.

Callers 4

TestAPIFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestAPIFunction · 0.74