Move code out of lib that is only referenced for one command

This commit is contained in:
David Dworken
2022-11-19 17:06:28 -08:00
parent 343f3cf1e5
commit d9c4a59ddd
2 changed files with 16 additions and 14 deletions

View File

@@ -492,18 +492,6 @@ func IsEnabled(ctx *context.Context) (bool, error) {
return hctx.GetConf(ctx).IsEnabled, nil
}
func Enable(ctx *context.Context) error {
config := hctx.GetConf(ctx)
config.IsEnabled = true
return hctx.SetConfig(config)
}
func Disable(ctx *context.Context) error {
config := hctx.GetConf(ctx)
config.IsEnabled = false
return hctx.SetConfig(config)
}
func CheckFatalError(err error) {
if err != nil {
_, filename, line, _ := runtime.Caller(1)