cli

package
v0.0.0-...-8d9fac4 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: CC-BY-SA-4.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Usage

func Usage(w io.Writer, name string, d map[string]SubCommand)

Types

type Command

type Command func(args []string, procInout ProcInout) byte

func CommandWithSubCommands

func CommandWithSubCommands(name string, subCommands map[string]SubCommand) Command

func (Command) Run

func (c Command) Run()

type ProcInout

type ProcInout struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

func DefaultProcInout

func DefaultProcInout() ProcInout

type SubCommand

type SubCommand struct {
	Help    string
	Command Command
}

Jump to

Keyboard shortcuts

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