command

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command[C any] interface {
	Configure(func(fb config.FlagBuilder, cfg *C))
}

func NewCommand

func NewCommand[C any](root RootCommand, use string, short string, long string, cfg *C, task Task[C]) Command[C]

type RootCommand

type RootCommand interface {
	Execute()
	// contains filtered or unexported methods
}

func NewRootCommand

func NewRootCommand(short string, long string) RootCommand

type Task

type Task[C any] interface {
	Run(cfg *C) error
}

Jump to

Keyboard shortcuts

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