exec

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandFunc

func CommandFunc(ctx context.Context, args ...object.Object) object.Object

func LookPath

func LookPath(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(cmd *exec.Cmd) *Command

func (*Command) Compare

func (c *Command) Compare(other object.Object) (int, error)

func (*Command) Cost

func (c *Command) Cost() int

func (*Command) Equals

func (c *Command) Equals(other object.Object) object.Object

func (*Command) GetAttr

func (c *Command) GetAttr(name string) (object.Object, bool)

func (*Command) Inspect

func (c *Command) Inspect() string

func (*Command) Interface

func (c *Command) Interface() interface{}

func (*Command) IsTruthy

func (c *Command) IsTruthy() bool

func (*Command) MarshalJSON

func (c *Command) MarshalJSON() ([]byte, error)

func (*Command) RunOperation

func (c *Command) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Command) SetAttr

func (c *Command) SetAttr(name string, value object.Object) error

func (*Command) String

func (c *Command) String() string

func (*Command) Type

func (c *Command) Type() object.Type

func (*Command) Value

func (c *Command) Value() *exec.Cmd

Jump to

Keyboard shortcuts

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