Documentation ¶
Index ¶
- func GetPluginPkgs() []string
- func GetPlugins() []*cobra.Command
- func RegisterBuildPostProcessor(processor BuildPostProcessor)
- func RegisterBuildPreProcessor(processor BuildPreProcessor)
- func RegisterPlugin(command *cobra.Command)
- func SetCurrentProject(project AppProject)
- func SetVerbose(enable bool)
- func Verbose() bool
- type AppProject
- type BuildOptions
- type BuildPostProcessor
- type BuildPreProcessor
- type Builder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPluginPkgs ¶
func GetPluginPkgs() []string
func GetPlugins ¶
func RegisterBuildPostProcessor ¶
func RegisterBuildPostProcessor(processor BuildPostProcessor)
func RegisterBuildPreProcessor ¶
func RegisterBuildPreProcessor(processor BuildPreProcessor)
func RegisterPlugin ¶
func SetCurrentProject ¶
func SetCurrentProject(project AppProject)
func SetVerbose ¶
func SetVerbose(enable bool)
Types ¶
type AppProject ¶
type AppProject interface { Validate() error Name() string Dir() string BinDir() string SrcDir() string Executable() string AddImports(ignoreError bool, addToJson bool, imports ...util.Import) error RemoveImports(imports ...string) error GetPath(flogoImport util.Import) (string, error) DepManager() util.DepManager GetGoImports(withVersion bool) ([]util.Import, error) }
func CurrentProject ¶
func CurrentProject() AppProject
type BuildOptions ¶
type BuildPostProcessor ¶
type BuildPostProcessor interface {
DoPostProcessing(project AppProject) error
}
func BuildPostProcessors ¶
func BuildPostProcessors() []BuildPostProcessor
type BuildPreProcessor ¶
type BuildPreProcessor interface {
DoPreProcessing(project AppProject, options BuildOptions) error
}
func BuildPreProcessors ¶
func BuildPreProcessors() []BuildPreProcessor
type Builder ¶
type Builder interface {
Build(project AppProject) error
}
Click to show internal directories.
Click to hide internal directories.