(target string, category string)
| 183 | } |
| 184 | |
| 185 | func 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 | |
| 195 | func buildOpenCommand(goos string, cfg conf.OpenConfig, path string, category string) (string, []string, error) { |
| 196 | command := commandForCategory(cfg, category) |
no test coverage detected