onInit

public final ListenerCommand onInit(Runnable action)

Returns a ListenerCommand that runs the specified action when this command initializes.