Documentation ¶
Overview ¶
Package launchr has application implementation.
Index ¶
- Constants
- Variables
- func EnsurePath(parts ...string) error
- func Gen() int
- func GetFsAbsPath(fs fs.FS) string
- func RegisterPlugin(p Plugin)
- func Run() int
- func ToCamelCase(s string, capFirst bool) string
- type ActionDiscoveryPlugin
- type App
- type AppVersion
- type CobraPlugin
- type Config
- type ConfigAware
- type GeneratePlugin
- type OnAppInitPlugin
- type Plugin
- type PluginGeneratedData
- type PluginInfo
- type PluginManager
- type Service
- type ServiceInfo
Constants ¶
const ( // PkgPath is a main module path. PkgPath = launchr.PkgPath )
Variables ¶
var ActionsGroup = &cobra.Group{
ID: "actions",
Title: "Actions:",
}
ActionsGroup is a cobra command group definition
Functions ¶
func EnsurePath ¶ added in v0.0.9
EnsurePath creates all directories in the path.
func GetFsAbsPath ¶ added in v0.0.9
GetFsAbsPath returns absolute path for an FS struct.
func ToCamelCase ¶
ToCamelCase converts a string to CamelCase.
Types ¶
type ActionDiscoveryPlugin ¶ added in v0.5.4
type ActionDiscoveryPlugin = action.DiscoveryPlugin
ActionDiscoveryPlugin is an interface to implement a plugin to discover actions.
type CobraPlugin ¶
type CobraPlugin = launchr.CobraPlugin
CobraPlugin is an interface to implement a plugin for cobra.
type ConfigAware ¶ added in v0.1.0
type ConfigAware = launchr.ConfigAware
ConfigAware provides an interface for structs to support launchr configuration setting.
type GeneratePlugin ¶
type GeneratePlugin = launchr.GeneratePlugin
GeneratePlugin is an interface to generate supporting files before build.
type OnAppInitPlugin ¶ added in v0.1.0
type OnAppInitPlugin = launchr.OnAppInitPlugin
OnAppInitPlugin is an interface to implement a plugin for app initialisation.
type PluginGeneratedData ¶
type PluginGeneratedData = launchr.PluginGeneratedData
PluginGeneratedData is a struct containing a result information of plugin generation.
type PluginInfo ¶
type PluginInfo = launchr.PluginInfo
PluginInfo provides information about the plugin and is used as a unique data to indentify a plugin.
type PluginManager ¶ added in v0.0.8
type PluginManager = launchr.PluginManager
PluginManager handles plugins.
type ServiceInfo ¶ added in v0.0.8
type ServiceInfo = launchr.ServiceInfo
ServiceInfo provides service info for its initialization.
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. |
internal
|
|
launchr
Package launchr provides common app functionality.
|
Package launchr provides common app functionality. |
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. |
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. |
types
Package types contains launchr common types.
|
Package types contains launchr common types. |
Package plugins provides launchr core plugins.
|
Package plugins provides launchr core plugins. |
builder
Package builder implements launchr functionality to build itself.
|
Package builder implements launchr functionality to build itself. |
verbosity
Package verbosity is a plugin of launchr to configure log level of the app.
|
Package verbosity is a plugin of launchr to configure log level of the app. |
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. |
yamldiscovery/embed
Package embed provides yaml discovery with embed actions definition.
|
Package embed provides yaml discovery with embed actions definition. |