MCPcopy
hub / github.com/garrytan/gstack / canonicalizeCommand

Function canonicalizeCommand

browse/src/commands.ts:216–218  ·  view source on GitHub ↗
(cmd: string)

Source from the content-addressed store, hash-verified

214
215/** Resolve an alias to its canonical command name. Non-aliases pass through unchanged. */
216export function canonicalizeCommand(cmd: string): string {
217 return COMMAND_ALIASES[cmd] ?? cmd;
218}
219
220/**
221 * Commands added in specific versions — enables future "this command was added in vX"

Callers 4

dx-polish.test.tsFile · 0.90
handleMetaCommandFunction · 0.90
canDispatchOverTunnelFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected