cmd

public final static InstantCommand cmd(Function0<Unit> function)

Creates an InstantCommand that executes the given function.

Return

An InstantCommand that executes the given function.

Parameters

function

The function to execute.