MCPcopy
hub / github.com/ddworken/hishtory / GetHishtoryPath

Function GetHishtoryPath

client/data/data.go:182–193  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

180}
181
182func GetHishtoryPath() string {
183 err := ValidateHishtoryPath()
184 if err != nil {
185 // This panic() can only trigger if the env variable is changed after process startup
186 panic(err)
187 }
188 hishtoryPath := os.Getenv("HISHTORY_PATH")
189 if hishtoryPath != "" {
190 return hishtoryPath
191 }
192 return defaultHishtoryPath
193}

Callers 15

testBasicUserFlowFunction · 0.92
testTableDisplayCwdFunction · 0.92
TestStripBashTimePrefixFunction · 0.92
GetLoggerFunction · 0.92
MakeHishtoryDirFunction · 0.92
OpenLocalSqliteDbFunction · 0.92
GetConfigContentsFunction · 0.92
SetConfigFunction · 0.92
InitConfigFunction · 0.92
updateFunction · 0.92

Calls 1

ValidateHishtoryPathFunction · 0.85

Tested by 7

testBasicUserFlowFunction · 0.74
testTableDisplayCwdFunction · 0.74
TestStripBashTimePrefixFunction · 0.74
TestSetupFunction · 0.74
TestSetupOfflineFunction · 0.74