github.com/wawandco/oxplugins@v0.7.11/README.md (about)

     1  ## Oxpecker Plugins
     2  
     3  This repo holds a set of default plugins for oxpecker to work with Go and the Buffalo stack used by the Wawandco team. 
     4  ### Usage
     5  
     6  You can use individual plugins in here or use the base set of plugins in the `All` variable.
     7  
     8  ```go
     9  // in cmd/ox/main.go
    10  import (
    11      ...
    12      "github.com/wawandco/oxplugins"
    13  )
    14  
    15  func main() {
    16      fmt.Print("~~~~ Using {{.Name}}/cmd/ox ~~~\n\n")
    17      ctx := context.Background()
    18  
    19      pwd, err := os.Getwd()
    20      if err != nil {
    21          log.Fatal(err)
    22      }
    23      
    24      cl := cli.New()
    25      // append your plugins here
    26      cl.Plugins = append(cl.Plugins, oxplugins.Base...)
    27      ...
    28  }
    29  ```
    30  
    31