mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-14 00:58:40 +02:00
no context pointers
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user