utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesTagExist

func DoesTagExist(tag string) (bool, error)

func EvaluateYqToString

func EvaluateYqToString(expr string, files ...string) (string, error)

func GetFlavorConfig

func GetFlavorConfig(flavor string, config types.ReleaseConfig, packageName string) (string, types.Flavor, error)

func GetFormattedVersion added in v0.0.13

func GetFormattedVersion(packageName string, version string, flavor string) string

func GetPackageName

func GetPackageName() (string, error)

func GetRepoInfo

func GetRepoInfo() (remoteURL string, defaultBranch string, err error)

func JoinNonEmpty added in v0.0.14

func JoinNonEmpty(sep string, elems ...string) string

JoinNonEmpty works like strings.Join but drops any empty elements.

func LoadReleaseConfig

func LoadReleaseConfig(dir string) (types.ReleaseConfig, error)

func LoadYaml

func LoadYaml(path string, destVar any) error

func OpenRepo

func OpenRepo() (*git.Repository, error)

func UpdateYaml

func UpdateYaml(path string, srcVar any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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