bundles

package
v3.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL