MCPcopy Create free account
hub / github.com/NVIDIA/nvcf / activeConfigFileForState

Function activeConfigFileForState

src/clis/nvcf-cli/cmd/root.go:123–128  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121}
122
123func activeConfigFileForState() string {
124 if cfgFile != "" {
125 return resolveConfigFilePath(cfgFile)
126 }
127 return resolveConfigFilePath(viper.ConfigFileUsed())
128}
129
130func resolveConfigFilePath(configPath string) string {
131 configPath = strings.TrimSpace(configPath)

Callers 3

GetCurrentConfigNameFunction · 0.85

Calls 1

resolveConfigFilePathFunction · 0.85

Tested by

no test coverage detected