package octez-shell-libs

  1. Overview
  2. Docs
Octez shell libraries

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-shell-libs.client-base/Tezos_client_base/Client_aliases/index.html

Module Tezos_client_base.Client_aliasesSource

Sourceval parse_alternatives : (string * (string -> 'a Tezos_base.TzPervasives.tzresult Lwt.t)) list -> string -> 'a Tezos_base.TzPervasives.tzresult Lwt.t

Allows to parse an argument taking one of many forms. Accepts a list of alternative parsers and an input string. Each alternative consists of a string being the name of the format and a function for parsing the input.

If the input string has form 'format:argument', where 'format' appears among alternative names, then the parser associated with that name is run against the argument and its result is returned. Otherwise, each parser is tried against the whole input in turn. If any of them succeeds, no further parsers are tried and the successful result is returned. If none succeeds, their error traces are combined into an error which is returned.

Sourcemodule type Entity = sig ... end
Sourcemodule type Alias = sig ... end
Sourcemodule Alias (Entity : Entity) : Alias with type t = Entity.t
OCaml

Innovation. Community. Security.