utils

package
v0.29.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstNonEmpty added in v0.26.0

func FirstNonEmpty(values ...string) string

func GetAuthenticatedGithubClient added in v0.29.0

func GetAuthenticatedGithubClient() *github.Client

func PromptYesNo added in v0.20.0

func PromptYesNo(question string, nonInteractive bool) (bool, error)

func RemoveZeroValues

func RemoveZeroValues(slice []string) []string

func ResolveCommitHash added in v0.13.0

func ResolveCommitHash(possibleCommitHash string) (string, error)

func ResolveCommitMessage added in v0.13.0

func ResolveCommitMessage(possibleCommitMessage string) (string, error)

func ResolveGitRepositoryTopLevelPath added in v0.27.0

func ResolveGitRepositoryTopLevelPath() (string, error)

func ResolveRepositoryName added in v0.13.0

func ResolveRepositoryName(possibleRepositoryName string) (string, error)

func StringWithDefault added in v0.13.0

func StringWithDefault(value, defaultValue string) string

func WriteFileWithTemplate added in v0.19.0

func WriteFileWithTemplate(
	directory string,
	fileName string,
	templateFile string,
	templates embed.FS,
	variables any,
) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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