commands

package
v0.0.0-...-6ae0033 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Route

func Route(args []string) error

Types

type Fmter

type Fmter struct {
	io.Writer
	Flags *flag.FlagSet
	Write bool
	Diffs bool
}

func NewFmter

func NewFmter(w io.Writer) *Fmter

func (*Fmter) Exec

func (f *Fmter) Exec(args []string) error

type Printer

type Printer struct {
	io.Writer
	Kind string
}

func NewPrinter

func NewPrinter(w io.Writer, kind string) Printer

func (Printer) Exec

func (a Printer) Exec(args []string) error

type Runner

type Runner struct {
	io.Writer
	Flags *flag.FlagSet
}

func NewRunner

func NewRunner(w io.Writer) *Runner

func (Runner) Exec

func (r Runner) Exec(args []string) error

Jump to

Keyboard shortcuts

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