command

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 1 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 interface {
	CommandInfo
	Run(buf io.Writer, err io.Writer, args []string)
}

func New

func New(name, desc string, fct FuncRun) Command

type CommandInfo

type CommandInfo interface {
	Name() string
	Describe() string
}

func Info

func Info(name, desc string) CommandInfo

type FuncRun

type FuncRun func(buf io.Writer, err io.Writer, args []string)

Jump to

Keyboard shortcuts

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