github.com/wawandco/oxpecker@v1.5.7-0.20210910201653-5958d4afdd89/lifecycle/fix/fixer.go (about)

     1  package fix
     2  
     3  import (
     4  	"context"
     5  
     6  	"github.com/wawandco/oxpecker/plugins"
     7  )
     8  
     9  // Fixer interface is created for those commands that fill fix certain
    10  // part of our code to match versions or compile correctly. Fixers are
    11  // a good way to transition from old versions of the tools into newer
    12  // ones
    13  type Fixer interface {
    14  	plugins.Plugin
    15  	Fix(context.Context, string, []string) error
    16  }