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

Method DevPodProviderFindOption

e2e/framework/command.go:323–330  ·  view source on GitHub ↗
(ctx context.Context, provider string, searchStr string, extraArgs ...string)

Source from the content-addressed store, hash-verified

321}
322
323func (f *Framework) DevPodProviderFindOption(ctx context.Context, provider string, searchStr string, extraArgs ...string) error {
324 baseArgs := []string{"provider", "options", provider}
325 err := f.ExecCommand(ctx, false, true, searchStr, append(baseArgs, extraArgs...))
326 if err != nil {
327 return fmt.Errorf("devpod provider use failed: %s", err.Error())
328 }
329 return nil
330}
331
332func (f *Framework) DevPodContextCreate(ctx context.Context, name string, extraArgs ...string) error {
333 baseArgs := []string{"context", "create", name}

Callers 1

provider.goFile · 0.80

Calls 3

ExecCommandMethod · 0.95
ErrorfMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected