MCPcopy Create free account
hub / github.com/diillson/chatcli / IsEnabled

Method IsEnabled

cli/hooks/types.go:71–76  ·  view source on GitHub ↗

IsEnabled returns true if the hook is enabled (default: true).

()

Source from the content-addressed store, hash-verified

69
70// IsEnabled returns true if the hook is enabled (default: true).
71func (h HookConfig) IsEnabled() bool {
72 if h.Enabled == nil {
73 return true
74 }
75 return *h.Enabled
76}
77
78// GetTimeout returns the timeout in milliseconds (default: 10000).
79func (h HookConfig) GetTimeout() int {

Callers 4

TestHookConfig_IsEnabledFunction · 0.95
handleHooksCommandMethod · 0.80
LoadFromFileMethod · 0.80
FireMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestHookConfig_IsEnabledFunction · 0.76