Documentation ¶
Index ¶
- Constants
- func AppFunc(ctx context.Context, args ...object.Object) object.Object
- func CommandFunc(ctx context.Context, args ...object.Object) object.Object
- func FlagFunc(ctx context.Context, args ...object.Object) object.Object
- func Module() *object.Module
- type App
- func (app *App) Cost() int
- func (app *App) Equals(other object.Object) object.Object
- func (app *App) GetAttr(name string) (object.Object, bool)
- func (app *App) Inspect() string
- func (app *App) Interface() interface{}
- func (app *App) IsTruthy() bool
- func (app *App) MarshalJSON() ([]byte, error)
- func (app *App) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (app *App) SetAttr(name string, value object.Object) error
- func (app *App) Type() object.Type
- type Command
- 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) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *Command) SetAttr(name string, value object.Object) error
- func (c *Command) Type() object.Type
- type Ctx
- func (c *Ctx) Cost() int
- func (c *Ctx) Equals(other object.Object) object.Object
- func (c *Ctx) GetAttr(name string) (object.Object, bool)
- func (c *Ctx) Inspect() string
- func (c *Ctx) Interface() interface{}
- func (c *Ctx) IsTruthy() bool
- func (c *Ctx) MarshalJSON() ([]byte, error)
- func (c *Ctx) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (c *Ctx) SetAttr(name string, value object.Object) error
- func (c *Ctx) Type() object.Type
- type Flag
- func (f *Flag) Cost() int
- func (f *Flag) Equals(other object.Object) object.Object
- func (f *Flag) GetAttr(name string) (object.Object, bool)
- func (f *Flag) Inspect() string
- func (f *Flag) Interface() interface{}
- func (f *Flag) IsTruthy() bool
- func (f *Flag) MarshalJSON() ([]byte, error)
- func (f *Flag) RunOperation(opType op.BinaryOpType, right object.Object) object.Object
- func (f *Flag) SetAttr(name string, value object.Object) error
- func (f *Flag) Type() object.Type
Constants ¶
View Source
const APP object.Type = "cli.app"
View Source
const COMMAND object.Type = "cli.command"
View Source
const CTX object.Type = "cli.ctx"
View Source
const FLAG object.Type = "cli.flag"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) MarshalJSON ¶
func (*App) RunOperation ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func NewCommand ¶
func (*Command) MarshalJSON ¶
func (*Command) RunOperation ¶
type Ctx ¶
type Ctx struct {
// contains filtered or unexported fields
}
func (*Ctx) MarshalJSON ¶
func (*Ctx) RunOperation ¶
type Flag ¶
type Flag struct {
// contains filtered or unexported fields
}
func (*Flag) MarshalJSON ¶
func (*Flag) RunOperation ¶
Click to show internal directories.
Click to hide internal directories.