cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Run

func Run(cmd *cobra.Command, args []string) error

Types

type Bind added in v0.0.2

type Bind struct {
	Cmd    *exec.Cmd
	Prefix string
}

type Source

type Source struct {
	Name    string
	Command string
}

func ParseSource

func ParseSource(r io.Reader) ([]*Source, error)

Jump to

Keyboard shortcuts

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