Documentation ¶
Overview ¶
Package builder implements launchr functionality to build itself.
Package builder implements a plugin to build launchr with plugins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildOptions ¶
type BuildOptions struct { LaunchrVersion *launchr.AppVersion Version string CorePkg UsePluginInfo PkgName string ModReplace map[string]string Plugins []UsePluginInfo BuildOutput string Debug bool Tags []string }
BuildOptions stores launchr build parameters.
func (*BuildOptions) Validate ¶
func (opts *BuildOptions) Validate() error
Validate verifies build options.
type Builder ¶
type Builder struct { *BuildOptions // contains filtered or unexported fields }
Builder is the orchestrator to fetch dependencies and build launchr.
func NewBuilder ¶
func NewBuilder(opts *BuildOptions) (*Builder, error)
NewBuilder creates build environment.
type Plugin ¶
type Plugin struct{}
Plugin is a plugin to build launchr application.
func (*Plugin) CobraAddCommands ¶
CobraAddCommands implements launchr.CobraPlugin interface to provide build functionality.
func (*Plugin) PluginInfo ¶
func (p *Plugin) PluginInfo() launchr.PluginInfo
PluginInfo implements launchr.Plugin interface.
type UsePluginInfo ¶
UsePluginInfo stores plugin info.
func UsePluginInfoFromString ¶
func UsePluginInfoFromString(s string) UsePluginInfo
UsePluginInfoFromString constructs mod plugin info.
func (UsePluginInfo) String ¶
func (p UsePluginInfo) String() string
Click to show internal directories.
Click to hide internal directories.