MCPcopy Create free account
hub / github.com/tiann/hapi / resolveRawArgv

Function resolveRawArgv

cli/src/utils/cliArgs.ts:3–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { basename } from 'node:path';
2
3function resolveRawArgv(): string[] {
4 const bunArgv = globalThis.Bun?.argv;
5 if (Array.isArray(bunArgv) && bunArgv.length > 0) {
6 return bunArgv;
7 }
8 return process.argv;
9}
10
11function isEntrypointPath(value: string, bunMain: string): boolean {
12 if (!value) {

Callers 1

getCliArgsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected