Documentation
¶
Index ¶
- func CommandFunc(ctx context.Context, args ...object.Object) object.Object
- func Exec(ctx context.Context, args ...object.Object) object.Object
- func LookPath(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- type Command
- func (c *Command) Compare(other object.Object) (int, error)
- func (c *Command) Cost() int
- func (c *Command) Equals(other object.Object) object.Object
- func (c *Command) GetAttr(name string) (object.Object, bool)
- func (c *Command) Inspect() string
- func (c *Command) Interface() interface{}
- func (c *Command) IsTruthy() bool
- func (c *Command) MarshalJSON() ([]byte, error)
- func (c *Command) Run(ctx context.Context) error
- func (c *Command) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *Command) SetAttr(name string, value object.Object) error
- func (c *Command) Stderr() object.Object
- func (c *Command) Stdout() object.Object
- func (c *Command) String() string
- func (c *Command) Type() object.Type
- func (c *Command) Value() *exec.Cmd
- type Result
- func (r *Result) Compare(other object.Object) (int, error)
- func (r *Result) Cost() int
- func (r *Result) Equals(other object.Object) object.Object
- func (r *Result) GetAttr(name string) (object.Object, bool)
- func (r *Result) Inspect() string
- func (r *Result) Interface() interface{}
- func (r *Result) IsTruthy() bool
- func (r *Result) JSON() object.Object
- func (r *Result) MarshalJSON() ([]byte, error)
- func (r *Result) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (r *Result) SetAttr(name string, value object.Object) error
- func (r *Result) Stderr() object.Object
- func (r *Result) Stdout() object.Object
- func (r *Result) Type() object.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) MarshalJSON ¶
func (*Command) RunOperation ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func (*Result) MarshalJSON ¶
func (*Result) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.