hive

package
v0.0.0-...-72f204f Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bees = map[string]CmdFunc{}

Functions

func Arch

func Arch(cmd *Cmd) int

func Awk

func Awk(cmd *Cmd) (code int)

func Base64

func Base64(cmd *Cmd) int

func Basename

func Basename(cmd *Cmd) int

func Cat

func Cat(cmd *Cmd) int

func CmdList

func CmdList() (cmds []string)

func False

func False(*Cmd) int

func True

func True(*Cmd) int

Types

type Cmd

type Cmd struct {
	exec.Cmd
	Id       int
	Parent   *Cmd
	ExitCode int
	Fallback bool
	// contains filtered or unexported fields
}

func Command

func Command(argv ...string) *Cmd

func (*Cmd) BadCmd

func (c *Cmd) BadCmd() int

func (*Cmd) Default

func (c *Cmd) Default() int

func (*Cmd) Run

func (c *Cmd) Run() int

func (*Cmd) Start

func (c *Cmd) Start()

func (*Cmd) StdinCloser

func (c *Cmd) StdinCloser() (io.WriteCloser, error)

func (*Cmd) StdoutCloser

func (c *Cmd) StdoutCloser() (io.ReadCloser, error)

func (*Cmd) Wait

func (c *Cmd) Wait() error

type CmdFunc

type CmdFunc func(*Cmd) int

type CmdWriteCloser

type CmdWriteCloser struct {
	// contains filtered or unexported fields
}

func (*CmdWriteCloser) Close

func (cwc *CmdWriteCloser) Close() error

func (*CmdWriteCloser) Write

func (cwc *CmdWriteCloser) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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