github.com/wawandco/oxpecker@v1.5.7-0.20210910201653-5958d4afdd89/lifecycle/dev/developer.go (about) 1 package dev 2 3 import "context" 4 5 type ( 6 // Developer is a tool that will be invoked for development 7 // purposes. Things like webpack with --watch and refresh. 8 Developer interface { 9 Name() string 10 Develop(context.Context, string) error 11 } 12 13 // BeforeDeveloper is an interface that will allow to identify those plugins that 14 // need to run before the dev commands is run. 15 BeforeDeveloper interface { 16 Name() string 17 BeforeDevelop(context.Context, string) error 18 } 19 )