Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module( "winterfx_core_flagfx", fx.Provide( ArgsFromCommandLine, New, ), fx.Invoke(Parse), )
Functions ¶
func AsDecoderFunc ¶
AsDecoderFunc wraps a flag set decoder function with joint points
func OverrideArgs ¶
OverrideArgs supplies the command-line arguments
Types ¶
type Args ¶
type Args []string
Args is the command-line arguments
func ArgsFromCommandLine ¶
func ArgsFromCommandLine() Args
ArgsFromCommandLine loads the flag set args from command-line arguments
type DecoderResult ¶
type DecoderResult[T any] struct { fx.Out JointPoint JointPoint `group:"winterfx_core_flagfx_jointpoints"` Value *T }
type JointPoint ¶
type JointPoint struct{}
JointPoint is a joint point for ensuring all decoder functions are called before parsing flagset
type ParseOptions ¶
type ParseOptions struct { fx.In JointPoint []JointPoint `group:"winterfx_core_flagfx_jointpoints"` FlagSet *flag.FlagSet Args Args }
ParseOptions is the options for parsing flag set
Click to show internal directories.
Click to hide internal directories.