urfave

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 11

Documentation

Overview

Package urfave is a cli wrapper for urfave.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(app *cli.App, flags []*oCli.Flag, args []string) source.Data

Parse parses all the CLI flags.

func ProvideApp added in v0.2.0

func ProvideApp(
	serviceName types.ServiceName,
	serviceVersion types.ServiceVersion,
) (*cli.App, error)

ProvideApp provides a new app with the given service name and version for ProvideParseFunc.

func ProvideConfigData added in v0.2.0

func ProvideConfigData(serviceName types.ServiceName, serviceVersion types.ServiceVersion) (types.ConfigData, error)

ProvideConfigData provides configData from cli by calling go-orb/config/source/cli:ProvideConfigData.

func ProvideFlags added in v0.2.0

func ProvideFlags() ([]*oCli.Flag, error)

ProvideFlags return the flags for ProvideParseFunc.

func ProvideParserFunc added in v0.2.0

func ProvideParserFunc(app *cli.App, flags []*oCli.Flag) (oCli.ParseFunc, error)

ProvideParserFunc returns a parser for go-orb/config/source/cli.

Types

This section is empty.

Jump to

Keyboard shortcuts

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