MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / rank

Function rank

src/workspaces/win-command.ts:96–101  ·  view source on GitHub ↗
(ext: string)

Source from the content-addressed store, hash-verified

94}
95
96function rank(ext: string): number {
97 const e = ext.toLowerCase();
98 if (e === '.exe' || e === '.com') return 0;
99 if (e === '.cmd' || e === '.bat') return 1;
100 return 2;
101}

Callers 1

lookupOnWindowsPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected