MCPcopy Index your code
hub / github.com/codehamr/codehamr / ActiveURL

Method ActiveURL

internal/config/config.go:338–343  ·  view source on GitHub ↗

ActiveURL is the endpoint every dial-out uses: the runtime override if set, else the active profile's URL. Use this over ActiveProfile().URL so CODEHAMR_URL doesn't leak back into Save.

()

Source from the content-addressed store, hash-verified

336// else the active profile's URL. Use this over ActiveProfile().URL so
337// CODEHAMR_URL doesn't leak back into Save.
338func (c *Config) ActiveURL() string {
339 if c.URLOverride != "" {
340 return c.URLOverride
341 }
342 return c.ActiveProfile().URL
343}
344
345// ModelNames returns the profile names sorted, so the popover cycles
346// deterministically regardless of map iteration order.

Callers 6

NewFunction · 0.80
errorMessageMethod · 0.80
reloadConfigFromDiskMethod · 0.80
rebuildClientMethod · 0.80
mainFunction · 0.80

Calls 1

ActiveProfileMethod · 0.95

Tested by 1