# Module OpamClient.API.SWITCH

    module SWITCH: sig .. end

Switch API

    val switch : ?compiler:OpamTypes.compiler ->
           quiet:bool -> warning:bool -> OpamTypes.switch -> unit

Set the given switch, installing it if necessary. Take the global file lock.

    val install : quiet:bool ->
           warning:bool ->
           update_config:bool -> OpamTypes.switch -> OpamTypes.compiler -> unit

Install the given compiler.

    val import : OpamTypes.filename option -> unit

Import the packages from a file. If no filename is specified, read stdin.

    val export : OpamTypes.filename option -> unit

Export the packages to a file. If no filename is specified, write to stdout.

    val remove : OpamTypes.switch -> unit

Remove the given compiler.

    val reinstall : OpamTypes.switch -> unit

Reinstall the given compiler.

    val list : print_short:bool -> installed:bool -> all:bool -> unit

List the available compiler descriptions.

    val show : unit -> unit

Display the name of the current compiler.