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

Function Disable

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

Source from the content-addressed store, hash-verified

36}
37
38func Disable(ctx context.Context) error {
39 config := hctx.GetConf(ctx)
40 config.IsEnabled = false
41 return hctx.SetConfig(config)
42}
43
44func init() {
45 rootCmd.AddCommand(enableCmd)

Callers 1

enableDisable.goFile · 0.85

Calls 2

GetConfFunction · 0.92
SetConfigFunction · 0.92

Tested by

no test coverage detected