MCPcopy Index your code
hub / github.com/coder/mux / normalizeIdentityFile

Function normalizeIdentityFile

src/node/runtime/sshConfigParser.ts:52–59  ·  view source on GitHub ↗
(value: string, homeDir: string)

Source from the content-addressed store, hash-verified

50}
51
52function normalizeIdentityFile(value: string, homeDir: string): string {
53 const expanded = expandHomePath(value, homeDir);
54 if (path.isAbsolute(expanded)) {
55 return expanded;
56 }
57
58 return path.join(homeDir, expanded);
59}
60
61function parseHostAndUser(host: string): { host: string; user?: string } {
62 const trimmed = host.trim();

Callers 1

resolveSSHConfigFunction · 0.85

Calls 2

isAbsoluteMethod · 0.80
expandHomePathFunction · 0.70

Tested by

no test coverage detected