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

Function Enable

client/cmd/enableDisable.go:32–36  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

30}
31
32func Enable(ctx context.Context) error {
33 config := hctx.GetConf(ctx)
34 config.IsEnabled = true
35 return hctx.SetConfig(config)
36}
37
38func Disable(ctx context.Context) error {
39 config := hctx.GetConf(ctx)

Callers 1

enableDisable.goFile · 0.85

Calls 2

GetConfFunction · 0.92
SetConfigFunction · 0.92

Tested by

no test coverage detected