utils

package
v1.27.0-beta.7 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignOptionalStringPtr added in v1.25.0

func AssignOptionalStringPtr(flagValue string) *string

func AssignStringField added in v1.25.0

func AssignStringField(flagValue string, fieldName string, inputFunc func(string) (string, error)) (string, error)

func FlagFileUnmarshalJSON added in v1.25.0

func FlagFileUnmarshalJSON(path string, request any) error

func Format

func Format(commands ...string) string

func FormatAskFieldRequired added in v1.25.0

func FormatAskFieldRequired(field string) string

func ParseAndAssign added in v1.25.0

func ParseAndAssign[T any](value string, parseFunc func(string) (T, error)) (*T, error)

func SafeNestedString added in v1.26.0

func SafeNestedString[T any](parent *T, fieldFunc func(*T) *string) string

func SafeString added in v1.26.0

func SafeString(value *string) string

func UnmarshalJSONFromReader added in v1.25.0

func UnmarshalJSONFromReader(file io.Reader, object any) error

func WriteDetailsToFile added in v1.25.0

func WriteDetailsToFile(data []byte, outPath 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