MCPcopy Create free account
hub / github.com/pingdotgg/t3code / executableName

Function executableName

apps/desktop/src/shell/DesktopShellEnvironment.ts:169–169  ·  view source on GitHub ↗
(command: string)

Source from the content-addressed store, hash-verified

167const endMarker = (name: string) => `__T3CODE_ENV_${name}_END__`;
168
169const executableName = (command: string): string => command.split(/[\\/]/u).at(-1) ?? command;
170
171const logShellEnvironmentCommandError = (
172 error: DesktopShellEnvironmentCommandError | DesktopShellEnvironmentCommandTimeoutError,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected