shutil

package
v0.3.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(shell string) (string, error)

func GoList added in v0.3.9

func GoList() (string, error)

func GoMod added in v0.3.9

func GoMod() (string, error)

func GraphViz added in v0.3.9

func GraphViz(in, out string) (err error)

func Run added in v0.3.9

func Run(args ...string) (string, error)

func Shell

func Shell(args ...string) *exec.Cmd

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