bash

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Name string
	W    io.Writer
	WErr io.Writer
}

Command ...

func (*Command) Aliases added in v1.0.1

func (c *Command) Aliases() map[string]struct{}

Aliases are the aliases and name for the command. For instance a command can have a long form and short form.

func (*Command) Description

func (c *Command) Description() string

Description is what is printed in Usage.

func (*Command) Key added in v1.0.1

func (c *Command) Key() string

Key returns the commands name for sorting.

func (*Command) Run

func (c *Command) Run(args []string) (int, error)

Run ...

Jump to

Keyboard shortcuts

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