shutil

package
v0.2.52 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(shell string) (string, error)

Types

type Operation added in v0.2.45

type Operation int

Operation is a enum to define type of command-line interpreter operation.

const (
	Assign Operation = 1 << iota
	Completion
	Exec
	Print

	All = Assign | Completion | Exec | Print
)

type Shell added in v0.2.45

type Shell int

Shell is a enum to define command-line interpreter.

func Classify added in v0.2.45

func Classify(bin string, operations ...Operation) (sh Shell, err error)

Classify tries to classify passed binary as a command-line interpreter.

func (Shell) String added in v0.2.45

func (sh Shell) String() string

String returns the string representation of the enum.

Jump to

Keyboard shortcuts

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