Documentation
¶
Index ¶
- func AddFlags(cmd HasFlags, def any) error
- func FillSecrets(ctx context.Context, client SecretClient, out any) error
- func GetConfig(cmd HasFlags, out any) error
- func MustFillSecrets(ctx context.Context, c SecretClient, out any)
- func MustGetConfig(cmd HasFlags, out any)
- func RunMain[T any](cfg CommandConfig[T], commands ...Registerable)
- type CommandConfig
- type CommandRunConfig
- type HasFlags
- type Registerable
- type SecretClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillSecrets ¶
func FillSecrets(ctx context.Context, client SecretClient, out any) error
func MustFillSecrets ¶
func MustFillSecrets(ctx context.Context, c SecretClient, out any)
func MustGetConfig ¶
func RunMain ¶ added in v0.4.0
func RunMain[T any](cfg CommandConfig[T], commands ...Registerable)
Types ¶
type CommandConfig ¶ added in v0.4.0
type CommandRunConfig ¶ added in v0.4.0
type Registerable ¶ added in v0.4.0
func WrapCommand ¶ added in v0.4.0
func WrapCommand[T any](cfg CommandConfig[T], cmd func(CommandRunConfig[T])) Registerable
Click to show internal directories.
Click to hide internal directories.