MCPcopy
hub / github.com/anomalyco/opencode / name

Function name

packages/core/src/shell.ts:139–142  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

137}
138
139export function name(file: string) {
140 if (process.platform === "win32") return path.win32.parse(FSUtil.windowsPath(file)).name.toLowerCase()
141 return path.basename(file).toLowerCase()
142}
143
144export function login(file: string) {
145 return meta(file)?.login === true

Callers 5

fullFunction · 0.70
metaFunction · 0.70
infoFunction · 0.70
argsFunction · 0.70
ToolErrorCardFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected