flags

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Destination

func Destination() string

func InputsConfig added in v0.1.0

func InputsConfig() string

func ListenAddr

func ListenAddr() string

func NewLogger

func NewLogger() *slog.Logger

func SetDestinationFlag

func SetDestinationFlag(cmd *cobra.Command)

func SetInputsConfigFlag added in v0.1.0

func SetInputsConfigFlag(cmd *cobra.Command)

func SetListenerFlag

func SetListenerFlag(cmd *cobra.Command, defaultValue string)

func SetLogFlags

func SetLogFlags(cmd *cobra.Command)

func SetStrictModeFlag added in v0.4.0

func SetStrictModeFlag(cmd *cobra.Command)

func StrictMode added in v0.4.0

func StrictMode() bool

func ValidateDestinationFlags

func ValidateDestinationFlags(*cobra.Command, []string) error

func ValidateInputsConfigFlags added in v0.1.0

func ValidateInputsConfigFlags(*cobra.Command, []string) error

func ValidateListenerFlags

func ValidateListenerFlags(*cobra.Command, []string) error

func ValidateLogFlags

func ValidateLogFlags(*cobra.Command, []string) error

func ValidateMultiFunc

func ValidateMultiFunc(merge bool, funcs ...func(*cobra.Command, []string) error) func(*cobra.Command, []string) error

ValidateMultiFunc 指定のfuncを順次適用するfuncを返す、mergeがfalseの場合、funcがerrorを返したら即時リターンする

func ValidateStrictModeFlags added in v0.4.0

func ValidateStrictModeFlags(*cobra.Command, []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