cmd

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Exit = os.Exit

Exit calls os.Exit by default. This variable can be replaced for testing

Functions

func Parse

func Parse(programName string, args []string, fn func(flags *flag.FlagSet))

func ShowVersion

func ShowVersion(programName string)

Types

type Config

type Config interface {
	Setup() (Starter, error)
}

type Service

type Service interface {
	Start(context.Context) error
}

type Starter

type Starter interface {
	Start(context.Context) error
	List() []Service
}

func NewStarter

func NewStarter(services ...Service) Starter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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