no context pointers

This commit is contained in:
Sergio Moura
2023-09-05 15:45:17 -04:00
parent efa9ddd6df
commit a12b0e5f6f
9 changed files with 49 additions and 49 deletions

View File

@ -28,13 +28,13 @@ var disableCmd = &cobra.Command{
},
}
func Enable(ctx *context.Context) error {
func Enable(ctx context.Context) error {
config := hctx.GetConf(ctx)
config.IsEnabled = true
return hctx.SetConfig(config)
}
func Disable(ctx *context.Context) error {
func Disable(ctx context.Context) error {
config := hctx.GetConf(ctx)
config.IsEnabled = false
return hctx.SetConfig(config)