service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PromptYesOrNoWithExpectedYes

func PromptYesOrNoWithExpectedYes(promptMsg string) error

PromptYesOrNoWithExpectedYes prompts the user in the CLI with 'yes' and 'no' and expects 'yes' to be choosen, else error.

func ValidateCustomFlags

func ValidateCustomFlags(validFlagNames []string, flags map[string]string) error

ValidateCustomFlags checks if the specified map of flag matches with the valid flag names

func ValidateType

func ValidateType(allowedTypes []string, t string, allowEmpty bool) error

ValidateType validate if the specified type value is part of the allowedTypes list

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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