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

Function getConfigValue

src/node/runtime/sshConfigParser.ts:91–99  ·  view source on GitHub ↗
(
  config: Record<string, ComputedConfigValue>,
  key: string
)

Source from the content-addressed store, hash-verified

89type ComputedConfigValue = string | string[] | ParsedValueToken[];
90
91function getConfigValue(
92 config: Record<string, ComputedConfigValue>,
93 key: string
94): ComputedConfigValue | undefined {
95 const match = Object.entries(config).find(
96 ([configKey]) => configKey.toLowerCase() === key.toLowerCase()
97 );
98 return match?.[1];
99}
100
101function toStringValue(value: ComputedConfigValue | undefined): string | undefined {
102 if (typeof value === "string") {

Callers 2

applyNegatedExecMatchFunction · 0.85
resolveSSHConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected