Documentation
¶
Overview ¶
Package launchr has application implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "launchr" // Name - version info Version = "dev" // Version - version info CustomVersion string // CustomVersion - custom version text )
Functions ¶
func SetCustomVersion ¶
func SetCustomVersion(v string)
SetCustomVersion stores custom version string for output, for example on custom build.
func ToCamelCase ¶
ToCamelCase converts a string to CamelCase
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds app related global variables.
func (*App) Plugins ¶
func (app *App) Plugins() map[PluginInfo]Plugin
Plugins returns installed app plugins.
type AppVersion ¶
AppVersion stores application version.
func (*AppVersion) String ¶
func (v *AppVersion) String() string
type CobraPlugin ¶
CobraPlugin is an interface to implement a plugin for cobra.
type GeneratePlugin ¶
type GeneratePlugin interface { Plugin Generate(buildPath string, workDir string) (*PluginGeneratedData, error) }
GeneratePlugin is an interface to generate supporting files before build.
type Plugin ¶
type Plugin interface { PluginInfo() PluginInfo InitApp(app *App) error }
Plugin is a common interface for launchr plugins.
type PluginGeneratedData ¶
type PluginGeneratedData struct {
Plugins []string
}
PluginGeneratedData is a struct containing a result information of plugin generation.
type PluginInfo ¶
PluginInfo provides information about the plugin.
Directories
¶
Path | Synopsis |
---|---|
cmd
|
|
launchr
Package executes Launchr application.
|
Package executes Launchr application. |
launchr/gen
Package gen is here to provide example structure for the built app.
|
Package gen is here to provide example structure for the built app. |
pkg
|
|
action
Package action provides implementations of discovering and running actions.
|
Package action provides implementations of discovering and running actions. |
cli
Package cli implements printing functionality for CLI output.
|
Package cli implements printing functionality for CLI output. |
cli/streams
Package streams has functionality related to in/out/err streams.
|
Package streams has functionality related to in/out/err streams. |
driver
Package driver hold implementation for action drivers.
|
Package driver hold implementation for action drivers. |
driver/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
jsonschema
Package jsonschema has functionality related to json schema support.
|
Package jsonschema has functionality related to json schema support. |
log
Package log is meant to provide a global logger for the application and provide logging functionality interface.
|
Package log is meant to provide a global logger for the application and provide logging functionality interface. |
plugins
Package plugins provides launchr core plugins.
|
Package plugins provides launchr core plugins. |
plugins/builder
Package builder implements launchr functionality to build itself.
|
Package builder implements launchr functionality to build itself. |
plugins/yamldiscovery
Package yamldiscovery implements a launchr plugin to discover actions defined in yaml.
|
Package yamldiscovery implements a launchr plugin to discover actions defined in yaml. |
plugins/yamldiscovery/embed
Package embed provides yaml discovery with embed actions definition.
|
Package embed provides yaml discovery with embed actions definition. |
Click to show internal directories.
Click to hide internal directories.