MCPcopy Index your code
hub / github.com/loft-sh/devpod / DevPodContextUse

Method DevPodContextUse

e2e/framework/command.go:341–348  ·  view source on GitHub ↗
(ctx context.Context, name string, extraArgs ...string)

Source from the content-addressed store, hash-verified

339}
340
341func (f *Framework) DevPodContextUse(ctx context.Context, name string, extraArgs ...string) error {
342 baseArgs := []string{"context", "use", name}
343 err := f.ExecCommand(ctx, false, true, "", append(baseArgs, extraArgs...))
344 if err != nil {
345 return fmt.Errorf("devpod context use failed: %s", err.Error())
346 }
347 return nil
348}
349
350func (f *Framework) DevPodContextDelete(ctx context.Context, name string, extraArgs ...string) error {
351 baseArgs := []string{"context", "delete", name}

Callers 1

context.goFile · 0.80

Calls 3

ExecCommandMethod · 0.95
ErrorfMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected