argparse

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewArgParser

func NewArgParser(logger log.TraceLogger, usageString string) *argParser

func NewSubcommand

func NewSubcommand(
	name string,
	description string,
	runFunc func(context.Context, []string) error,
) *genericSubcommand

Types

type Subcommand

type Subcommand interface {
	Name() string
	Description() string
	Run(ctx context.Context, args []string) error
}

Jump to

Keyboard shortcuts

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