Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codehamr/codehamr
/ Save
Method
Save
internal/config/config.go:262–267 ·
view source on GitHub ↗
Save rewrites config.yaml.
()
Source
from the content-addressed store, hash-verified
260
c.Active = name
261
if
err := c.Save(); err != nil {
262
c.Active = prev
263
return
err
264
}
265
return
nil
266
}
Callers
11
SetActive
Method · 0.95
newTestModel
Function · 0.80
TestArgPopoverOpensForModels
Function · 0.80
TestSlashModelSwitchesActive
Function · 0.80
TestSlashModelSwitchDropsStickyFallbackState
Function · 0.80
TestHamrpassNoArgsShowsSetWhenKeyPresent
Function · 0.80
TestHamrpassLazyCreatesProfile
Function · 0.80
TestConfigFilePermissionsAreOwnerOnly
Function · 0.80
TestSaveIsAtomicAndLeavesNoTemp
Function · 0.80
TestURLOverrideDoesNotPersist
Function · 0.80
TestSaveTightensPreexistingLoosePerms
Function · 0.80
Calls
1
writeYAML
Function · 0.85
Tested by
10
newTestModel
Function · 0.64
TestArgPopoverOpensForModels
Function · 0.64
TestSlashModelSwitchesActive
Function · 0.64
TestSlashModelSwitchDropsStickyFallbackState
Function · 0.64
TestHamrpassNoArgsShowsSetWhenKeyPresent
Function · 0.64
TestHamrpassLazyCreatesProfile
Function · 0.64
TestConfigFilePermissionsAreOwnerOnly
Function · 0.64
TestSaveIsAtomicAndLeavesNoTemp
Function · 0.64
TestURLOverrideDoesNotPersist
Function · 0.64
TestSaveTightensPreexistingLoosePerms
Function · 0.64