package opam-client
Install
    
    dune-project
 Dependency
Authors
- 
  
    
    David Allsopp
- 
  
    
    VVincent Bernardoff <vb@luminar.eu.org>
- 
  
    
    RRaja Boujbel <raja.boujbel@ocamlpro.com>
- 
  
    
    KKate Deplaix <kit-ty-kate@outlook.com>
- 
  
    
    RRoberto Di Cosmo <roberto@dicosmo.org>
- 
  
    
    TThomas Gazagnaire <thomas@gazagnaire.org>
- 
  
    
    LLouis Gesbert <louis.gesbert@ocamlpro.com>
- 
  
    
    FFabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
- 
  
    
    AAnil Madhavapeddy <anil@recoil.org>
- 
  
    
    GGuillem Rieu <guillem.rieu@ocamlpro.com>
- 
  
    
    RRalf Treinen <ralf.treinen@pps.jussieu.fr>
- 
  
    
    FFrederic Tuong <tuong@users.gforge.inria.fr>
Maintainers
Sources
md5=3a99d6d8c0394185f168fa0f085f6bb9
    
    
  sha512=596d7b28f0cf9613dc7637aaeac45cc45f411a13286fea1cc81aeb0630c4f8a6dc2095d50db73229a255a3da3d9a08fe0993355a7fc64d3b16fd712789ff5f6e
    
    
  doc/opam-client/OpamRepositoryCommand/index.html
Module OpamRepositoryCommandSource
Functions handling the "opam repository" subcommand
val list : 
  'a OpamStateTypes.repos_state ->
  global:bool ->
  switches:OpamTypes.switch list ->
  short:bool ->
  unitList the selected repositories in the global default and/or selected switches.
Lists all configured repositories, and, if not short, the switches they are selected in.
val add : 
  OpamStateTypes.rw OpamStateTypes.repos_state ->
  OpamTypes.repository_name ->
  OpamTypes.url ->
  OpamTypes.trust_anchors option ->
  OpamStateTypes.rw OpamStateTypes.repos_stateAdd a new repository to ~/.opam/repos, without updating any selections
val remove : 
  OpamStateTypes.rw OpamStateTypes.repos_state ->
  OpamTypes.repository_name ->
  OpamStateTypes.rw OpamStateTypes.repos_stateRemove a repository from ~/.opam/repos, without updating any selections
val update_global_selection : 
  OpamStateTypes.rw OpamStateTypes.global_state ->
  (OpamTypes.repository_name list -> OpamTypes.repository_name list) ->
  OpamStateTypes.rw OpamStateTypes.global_stateUpdates the global switch selection, used as default for switches that don't specify their selections (e.g. newly created switches)
val update_selection : 
  'a OpamStateTypes.global_state ->
  global:bool ->
  switches:OpamTypes.switch list ->
  (OpamTypes.repository_name list -> OpamTypes.repository_name list) ->
  'a OpamStateTypes.global_stateUpdates the specified selections using the given functions, taking locks as required
val set_url : 
  OpamStateTypes.rw OpamStateTypes.repos_state ->
  OpamTypes.repository_name ->
  OpamTypes.url ->
  OpamTypes.trust_anchors option ->
  OpamStateTypes.rw OpamStateTypes.repos_stateChange the registered address of a repo
val update_with_auto_upgrade : 
  OpamStateTypes.rw OpamStateTypes.repos_state ->
  OpamTypes.repository_name list ->
  OpamTypes.repository_name list * OpamStateTypes.rw OpamStateTypes.repos_stateUpdate the given repositories, as per OpamUpdate.repositories, checks for their version and runs the upgrade script locally if they are for an earlier opam. Returns list of repositories that failed and the new repository state.