Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OverrideChildApp ¶
func OverrideChildApp(bundleApp *application.Application, childApp *application.Application, overrideType AppNameOverrideType) (*application.Application, error)
OverrideChildApp takes two apps, a bundle app and a child app, and attempts to correctly set the values of the bundle app to have it install the desired version of the child app. The overrideType specifies the naming convention for the child app. If set to AppNameOverrideAuto, it will attempt to auto-detect based on the bundle app name.
Types ¶
type AppNameOverrideType ¶ added in v2.2.0
type AppNameOverrideType int
AppNameOverrideType specifies how the child app name should be formatted in bundle values
const ( // AppNameOverrideAuto automatically detects the naming convention based on the bundle app name AppNameOverrideAuto AppNameOverrideType = iota // AppNameOverrideCamelCase converts the app name to camelCase (e.g., "my-app" -> "myApp") AppNameOverrideCamelCase // AppNameOverrideHyphen keeps the app name with hyphens (e.g., "my-app" stays "my-app") AppNameOverrideHyphen // AppNameOverrideNone skips setting any override values, returning the bundle app unchanged AppNameOverrideNone )
Click to show internal directories.
Click to hide internal directories.