MCPcopy Index your code
hub / github.com/deepnote/deepnote / getOpenCommand

Function getOpenCommand

packages/cli/src/utils/browser.ts:36–46  ·  view source on GitHub ↗

* Gets the platform-specific command and arguments to open a URL.

(url: string)

Source from the content-addressed store, hash-verified

34 * Gets the platform-specific command and arguments to open a URL.
35 */
36function getOpenCommand(url: string): { command: string; args: string[] } {
37 switch (platform()) {
38 case 'darwin':
39 return { command: 'open', args: [url] }
40 case 'win32':
41 return { command: 'cmd', args: ['/c', 'start', '', url] }
42 default:
43 // Linux and other Unix-like systems
44 return { command: 'xdg-open', args: [url] }
45 }
46}

Callers 1

openInBrowserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected