Class TasksTUI.Actions
java.lang.Object
com.guinetik.hexafun.examples.tasks.tui.TasksTUI.Actions
- Enclosing class:
- TasksTUI
Action implementations for each command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.guinetik.hexafun.fun.Result<TasksTUI.State>complete(TasksTUI.State state, String taskId) static com.guinetik.hexafun.fun.Result<TasksTUI.State>create(TasksTUI.State state, String title, String desc) static com.guinetik.hexafun.fun.Result<TasksTUI.State>delete(TasksTUI.State state, String taskId) static com.guinetik.hexafun.fun.Result<TasksTUI.State>quickAction(TasksTUI.State state, int index) Quick action: advances task through workflow based on current statusstatic com.guinetik.hexafun.fun.Result<TasksTUI.State>start(TasksTUI.State state, String taskId)
-
Constructor Details
-
Actions
public Actions()
-
-
Method Details
-
create
public static com.guinetik.hexafun.fun.Result<TasksTUI.State> create(TasksTUI.State state, String title, String desc) -
start
public static com.guinetik.hexafun.fun.Result<TasksTUI.State> start(TasksTUI.State state, String taskId) -
complete
public static com.guinetik.hexafun.fun.Result<TasksTUI.State> complete(TasksTUI.State state, String taskId) -
delete
public static com.guinetik.hexafun.fun.Result<TasksTUI.State> delete(TasksTUI.State state, String taskId) -
quickAction
public static com.guinetik.hexafun.fun.Result<TasksTUI.State> quickAction(TasksTUI.State state, int index) Quick action: advances task through workflow based on current status
-