shutil

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(shell string) (string, error)

Types

type Operation

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

type Shell int

Shell is a enum to define command-line interpreter.

func Classify

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

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

func (Shell) String

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