github.com/wawandco/oxplugins@v0.7.11/lifecycle/new/initializer.go (about) 1 package new 2 3 import ( 4 "context" 5 6 "github.com/wawandco/oxplugins/plugins" 7 ) 8 9 // Initializer is intended to initialize applications, 10 // things like generating files or running commands. 11 type Initializer interface { 12 // Initializers may require to use the passed flags. 13 plugins.FlagParser 14 15 // Initialize receives the context and the root folder where 16 // the application is being initialized. 17 Initialize(context.Context, string, []string) error 18 }