Add OCaml package manager (OPAM) (#62)

This adds support for the OCaml package manager (OPAM).

The command line `opam update` first performs a self-update if
necessary. Then it updates its package list.
Finally, `opam upgrade` upgrades all locally installed packages.
This commit is contained in:
Claudia
2018-09-03 13:45:01 +02:00
committed by Roey Darwish Dror
parent c0ac3e483e
commit c5ea22bac3
3 changed files with 22 additions and 0 deletions

View File

@@ -204,6 +204,10 @@ fn run() -> Result<(), Error> {
|terminal| generic::run_emacs(&base_dirs, terminal, dry_run),
&mut terminal,
));
report.push_result(execute(
|terminal| generic::run_opam_update(terminal, dry_run),
&mut terminal,
));
report.push_result(execute(
|terminal| vim::upgrade_vim(&base_dirs, terminal, dry_run),
&mut terminal,