gcli

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTo

func GenerateTo(src []*sflags.Flag, dst *[]cli.Flag)

GenerateTo takes a list of sflag.Flag, that are parsed from some config structure, and put it to dst.

func GenerateToV3 added in v0.3.1

func GenerateToV3(src []*sflags.Flag, dst *[]cli.Flag)

GenerateToV3 takes a list of sflag.Flag, that are parsed from some config structure, and put it to dst.

func Parse

func Parse(cfg interface{}, optFuncs ...sflags.OptFunc) ([]cli.Flag, error)

Parse parses cfg, that is a pointer to some structure, puts it to the new flag.FlagSet and returns it.

func ParseTo

func ParseTo(cfg interface{}, dst *[]cli.Flag, optFuncs ...sflags.OptFunc) error

ParseTo parses cfg, that is a pointer to some structure, and puts it to dst.

func ParseToV3 added in v0.3.1

func ParseToV3(cfg interface{}, dst *[]cli.Flag, optFuncs ...sflags.OptFunc) error

ParseToV3 parses cfg, that is a pointer to some structure, and puts it to dst.

func ParseV3 added in v0.3.1

func ParseV3(cfg interface{}, optFuncs ...sflags.OptFunc) ([]cli.Flag, error)

ParseV3 parses cfg, that is a pointer to some structure, puts it to the new flag.FlagSet and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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