MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / getConfigFileFormat

Function getConfigFileFormat

main.go:368–376  ·  view source on GitHub ↗
(configFile string)

Source from the content-addressed store, hash-verified

366}
367
368func getConfigFileFormat(configFile string) internalConfig.Format {
369 var format internalConfig.Format
370 if strings.HasSuffix(configFile, ".json") {
371 format = internalConfig.FormatJSON
372 } else {
373 format = internalConfig.FormatYAML
374 }
375 return format
376}

Callers 2

generateHostKeysFunction · 0.85
readConfigFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected