MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / openUrl

Function openUrl

apps/kimi-code/src/utils/open-url.ts:3–11  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

1import { execFile } from 'node:child_process';
2
3export function openUrl(url: string): void {
4 const command: [string, string[]] =
5 process.platform === 'darwin'
6 ? ['open', [url]]
7 : process.platform === 'win32'
8 ? ['cmd', ['/c', 'start', '', url]]
9 : ['xdg-open', [url]];
10 execFile(command[0], command[1], () => {});
11}

Callers 5

fallbackFunction · 0.90
handleWebCommandFunction · 0.90
createDefaultVisDepsFunction · 0.90
runLoginFlowFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected