Zafu/Cli/Args/Typesprivate package
source code:
public dependencies: Zafu/Collection/HashMap,
Zafu/Collection/HashSet,
Zafu/Collection/NonEmptyChain,
Zafu/Collection/NonEmptyList,
Zafu/Control/Result,
Zafu/Text/Pretty
ArgInfo, Args, Cardinality, CliError, Command, CommandSelection, DecodeResult, HelpConfig, IndexedToken, MatchState, NamedOccurrence, ParseConfig, ParseResult, PositionalOccurrence,
PrimitiveKind, PrimitiveSpec, Scope, Spelling, Subcommand, ValueForm, ValueKind, ValueParserArgInfotype ArgInfo
Args[a]type Args[a: +*]
Map[b](source: Args[b], fn: b -> a)Map2[b, c](left: Args[b], right: Args[c], fn: (b, c) -> a)OrElse(left: Args[a], right: Args[a])Primitive(spec: PrimitiveSpec[a], info: ArgInfo)Pure(value: a)Subcommands(commands: Zafu/Collection/NonEmptyList::NonEmptyList[Subcommand[Args, a]], info: ArgInfo)WithGroupDocs(source: Args[a], group_docs: Zafu/Collection/HashMap::HashMap[String, Zafu/Text/Pretty::Doc])WithInfo(source: Args[a], fn: ArgInfo -> ArgInfo)WithScope(source: Args[a], scope: Scope)Cardinalitytype Cardinality
CountOccurrencesExactlyOneOneOrMoreZeroOrMoreZeroOrOneCliErrortype CliError
AmbiguousSpecification(command_path: List[String], detail: Zafu/Text/Pretty::Doc)DuplicateOccurrence(command_path: List[String], target: Zafu/Text/Pretty::Doc)MissingArgument(command_path: List[String], target: Zafu/Text/Pretty::Doc)MissingValue(command_path: List[String], target: Zafu/Text/Pretty::Doc)UnexpectedArgument(command_path: List[String], token: String)UnknownCommand(command_path: List[String], token: String)UnknownOption(command_path: List[String], token: String)ValidationError(command_path: List[String], detail: Zafu/Text/Pretty::Doc)Command[a]type Command[a: +*]
CommandSelectiontype CommandSelection
CommandSelection(token_index: Int, depth: Int, raw_name: String, canonical_name: String)DecodeResult[a]type DecodeResult[a: +*]
DecodeResult(claimed: Zafu/Collection/HashSet::HashSet[Int], value: a)HelpConfigtype HelpConfig
HelpConfig(width: Int, show_hidden: Bool, show_defaults: Bool, show_examples: Bool)IndexedTokentype IndexedToken
IndexedToken(index: Int, raw: String)MatchStatetype MatchState
NamedOccurrencetype NamedOccurrence
ParseConfigtype ParseConfig
ParseResult[a]type ParseResult[a: +*]
Failed(errors: Zafu/Collection/NonEmptyChain::NonEmptyChain[CliError], doc: Zafu/Text/Pretty::Doc)Parsed(value: a)RequestedHelp(command_path: List[String], doc: Zafu/Text/Pretty::Doc)RequestedVersion(doc: Zafu/Text/Pretty::Doc)PositionalOccurrencetype PositionalOccurrence
PositionalOccurrence(segment_depth: Int, token_index: Int, raw_value: String)PrimitiveKindtype PrimitiveKind
FlagValue(spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Spelling], rendered: Zafu/Text/Pretty::Doc)NamedOptionalValue(spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Spelling], metavar: Zafu/Text/Pretty::Doc)NamedValue(spellings: Zafu/Collection/NonEmptyList::NonEmptyList[Spelling], metavar: Zafu/Text/Pretty::Doc)Positional(metavar: Zafu/Text/Pretty::Doc)Rest(metavar: Zafu/Text/Pretty::Doc)PrimitiveSpec[a]type PrimitiveSpec[a: +*]
Scopetype Scope
InheritedLocalSpellingtype Spelling
Subcommand[f, a]type Subcommand[f: +(+* -> *), a: +*]
ValueFormtype ValueForm
AttachedTokenEqualsTokenSeparateTokenValueKindtype ValueKind
FlagOptionalValueRequiredValueValueParser[a]type ValueParser[a: +*]