Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(lv lua.LValue, v interface{}) error
Decode unmarshal lua value into given variable using json bridge (make sure to pass pointer!)
func Encode ¶
func Encode(v interface{}, l *lua.LState) (lua.LValue, error)
Encode marshals given interface into value within lua state (using json bridge)
func NewPrompter ¶
NewPrompter returns new lua function which works as prompt and associated with set of defaults values provided as args.
func Print ¶
func Print(l *lua.LState) int
Print replaces default function in lua with Printf analog plus `<red+hb>color formatting support</reset>`.
func RenderMedia ¶
RenderMedia displays basic information about media.
func RenderStreams ¶
RenderStreams displays table with streams information.
Types ¶
type Prompter ¶
type Prompter struct { Args []string // contains filtered or unexported fields }
Prompter wraps set of default values (stack) and creates lua function to retrieve such values or request user input.
Click to show internal directories.
Click to hide internal directories.