invoke

operator fun invoke(name: String, description: String, action: Action.() -> Unit = {}): Action

Creates and configures an Action instance with Kotlin DSL syntax.

Return

Configured Action instance

Parameters

name

The name of the action

description

A description of what the action does

action

Configuration lambda to set up the action