Files
herolib/lib/installers/infra/livekit/play.v
2025-08-29 06:27:37 +02:00

23 lines
554 B
V

module livekit
import freeflowuniverse.herolib.core.playbook { PlayBook }
import freeflowuniverse.herolib.ui.console
import freeflowuniverse.herolib.installers.infra.livekit { install }
pub fn play(mut plbook PlayBook) ! {
if !plbook.exists(filter: 'livekit.') {
return
}
mut install_action := plbook.ensure_once(filter: 'livekit.install')!
mut p := install_action.params
mut args := InstallArgs{
reset: p.get_default_false('reset')
}
console.print_header('Executing livekit.install action')
install(args)!
install_action.done = true
}