MCPcopy Create free account
hub / github.com/52funny/pikpakcli / openWithLocalApp

Function openWithLocalApp

internal/shell/open.go:185–193  ·  view source on GitHub ↗
(target string, category string)

Source from the content-addressed store, hash-verified

183}
184
185func openWithLocalApp(target string, category string) error {
186 name, args, err := buildOpenCommand(runtime.GOOS, conf.Config.Open, target, category)
187 if err != nil {
188 return err
189 }
190
191 cmd := exec.Command(name, args...)
192 return cmd.Start()
193}
194
195func buildOpenCommand(goos string, cfg conf.OpenConfig, path string, category string) (string, []string, error) {
196 command := commandForCategory(cfg, category)

Callers 1

handleOpenCommandFunction · 0.85

Calls 1

buildOpenCommandFunction · 0.85

Tested by

no test coverage detected