cmd

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() int

Execute runs the root command and returns the exit code.

Types

type Iterator

type Iterator interface {
	// Next returns the next item from the iterator. io.EOF is returned when no more items are left.
	Next() (item string, err error)
}

Iterator returns items

func NewListIterator

func NewListIterator(items []string) Iterator

NewListIterator returns a new iterator from a list of items.

func NewReaderIterator

func NewReaderIterator(rd io.Reader, sep byte) Iterator

NewReaderIterator returns a new iterator from a reader.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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