GitHub

API reference for Action.

class Action[A]

A global flag that does something instead of running the command (--help, --version): when given, the runner calls run with its value and stops.

Attributes

AttributeTypeDescription
flagFlag[A]
runCallable[[A, HandlerContext], Effect[None]]

Functions

__init__

__init__(flag, run) -> None
ParameterTypeDescription
flagFlag[A]
runCallable[[A, HandlerContext], Effect[None]]