MCPcopy Create free account
hub / github.com/cli/cli / defaultLookPath

Function defaultLookPath

pkg/surveyext/editor_manual.go:22–28  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

20}
21
22func defaultLookPath(name string) ([]string, []string, error) {
23 exe, err := safeexec.LookPath(name)
24 if err != nil {
25 return nil, nil, err
26 }
27 return []string{exe}, nil, nil
28}
29
30func needsBom() bool {
31 // The reason why we do this is because notepad.exe on Windows determines the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected