Module Vcs.Platform

A platform in vcs' terminology is an online software development service where users host repositories, such as "GitHub".

This type is used to implement utilities for interacting with various platforms, for example to clone repositories.

The list of supported platforms may grow over time.

type t =
  1. | Bitbucket
  2. | Codeberg
  3. | GitHub
  4. | GitLab
  5. | Sourcehut
val compare : t -> t -> int
val equal : t -> t -> bool
val hash : t -> int
val seeded_hash : int -> t -> int
val sexp_of_t : t -> Sexplib0.Sexp.t
val all : t list
val to_string : t -> string

A string representing the platform, using the styled capitalization of the variant constructor. For example, "GitHub" is typically spelled with an uppercase 'H'. This is suitable for inclusion into error messages, user facing logs, etc.