GitHub

Primitive

API reference for Primitive.

Parses one string into an A; failures are messages for the user. choice_keys and path_type describe choices and paths to help and completions.

Attributes

AttributeTypeDescription
tagstr
parseCallable[[str], Effect[A_co, str, Environment]]
choice_keystuple[str, ...] | None = None
path_typePathType | None = None

Functions

__init__

__init__(tag, parse, choice_keys=None, path_type=None) -> None
ParameterTypeDescription
tagstr
parseCallable[[str], Effect[A_co, str, Environment]]
choice_keystuple[str, ...] | None = None
path_typePathType | None = None