ocaml / opam

opam is a source-based package manager. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow.
https://opam.ocaml.org
Other
1.21k stars 348 forks source link

Accessor syntax for opam option and opam var #6012

Open kit-ty-kate opened 3 weeks ago

kit-ty-kate commented 3 weeks ago

Similar to https://github.com/ocaml/opam/issues/5929 to would be nice to be able to access subparts of an expression returned by opam option and opam var. For example:

$ opam option sys-pkg-manager-cmd
["cygwin" "<opamroot>\\Local\\opam\\.cygwin\\root\\bin\\cygcheck.exe"]

it would be handy to be able to ask for the sub-element "cygwin" of this list