goash

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: BSD-3-Clause Imports: 13 Imported by: 1

README

========
go-ash
========

ash(Almquist Shell) implementation in pure golang.

This is a part of `toybox <https://github.com/shirou/toybox>`_.

features are very limited.

LICENSE
------------

BSD 3-clause

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Builtins map[string]BuiltinHandler
)

Functions

func AssemblePipes

func AssemblePipes(cmds []*exec.Cmd, stdin io.Reader, stdout io.Writer) []*exec.Cmd

func ExecutePipes

func ExecutePipes(cmds []*exec.Cmd) error

func Main

func Main(stdout io.Writer, call []string) error

func PrintError

func PrintError(err error)

func ReadWholeLine

func ReadWholeLine(b *bufio.Reader) (line string, err error)

Types

type BuiltinHandler

type BuiltinHandler func(context.Context, []string) error

Jump to

Keyboard shortcuts

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