MCPcopy Create free account
hub / github.com/aptly-dev/aptly / getOpenCommand

Function getOpenCommand

cmd/graph.go:104–113  ·  view source on GitHub ↗

getOpenCommand tries to guess command to open image for OS

()

Source from the content-addressed store, hash-verified

102
103// getOpenCommand tries to guess command to open image for OS
104func getOpenCommand() string {
105 switch runtime.GOOS {
106 case "darwin":
107 return "/usr/bin/open"
108 case "windows":
109 return "cmd /c start"
110 default:
111 return "xdg-open"
112 }
113}
114
115func makeCmdGraph() *commander.Command {
116 cmd := &commander.Command{

Callers 1

aptlyGraphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected