shell

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation added in v0.0.3

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