OpamClientClient entry-point.
module API : sig ... endOPAM API.
Call an unsafe function while taking the current switch lock.
Call an unsafe function while checking that no lock is already held.
val with_switch_backup : string -> (OpamState.state -> unit) -> unitLoads state with command, and calls f on it. The loaded state is backed up, and in case of error, a message is displayed on how to revert.