Skip to content

Commit

Permalink
Merge pull request #128 from na4zagin3/feature/deprecate-opam-uninstall
Browse files Browse the repository at this point in the history
Deprecate opam uninstall subcommand
  • Loading branch information
na4zagin3 authored Jun 27, 2020
2 parents f514697 + b2b6c65 commit f4c329f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion bin/commandOpam.ml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,19 @@ let opam_install_command =
opam_with_build_module_command ~prefix_optionality:Command.Param.required Satyrographos_command.Opam.install_opam

let opam_uninstall_command =
opam_with_build_module_command ~prefix_optionality:Command.Param.required Satyrographos_command.Opam.uninstall_opam
let open Command.Let_syntax in
let outf = Format.std_formatter in
Command.basic
~summary:"DEPRECATED"
[%map_open
let _ = flag "prefix" (required string) ~doc:"PREFIX Install destination"
and _ = flag "script" (optional string) ~doc:"SCRIPT Install script"
and _ = flag "name" (optional string) ~doc:"MODULE_NAME Module name"
and _ = flag "verbose" no_arg ~doc:"Make verbose"
in
fun () ->
Format.fprintf outf "Warning: opam uninstall subcommand has been deprecated. It does nothing now.\n"
]

let opam_buildfile_command =
let open Command.Let_syntax in
Expand Down

0 comments on commit f4c329f

Please sign in to comment.