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

Method DevPodContextCreate

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

Source from the content-addressed store, hash-verified

330}
331
332func (f *Framework) DevPodContextCreate(ctx context.Context, name string, extraArgs ...string) error {
333 baseArgs := []string{"context", "create", name}
334 err := f.ExecCommand(ctx, false, true, "", append(baseArgs, extraArgs...))
335 if err != nil {
336 return fmt.Errorf("devpod context create failed: %s", err.Error())
337 }
338 return nil
339}
340
341func (f *Framework) DevPodContextUse(ctx context.Context, name string, extraArgs ...string) error {
342 baseArgs := []string{"context", "use", name}

Callers 1

context.goFile · 0.80

Calls 3

ExecCommandMethod · 0.95
ErrorfMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected