mux.flow_start
Attaches an interactive flow to a descriptor and shows its first prompt.
Function
Synopsis
mux.flow_start( descriptor, module, first_step )
Arguments
number descriptor- A live descriptor ID, normally
ctx.descriptor. string module- The flow module path, resolved like
require. string first_step- A key in the module’s
flowstable.
Returns
Nothing.
Examples
mux.flow_start(ctx.descriptor, "confirm_delete.lua", "confirm")
Notes
Raises an error if the descriptor does not exist, already has a flow, or the module lacks the requested step. This function is unavailable during @lua/check.