Skip to content

Commit

Permalink
Expose OpamSystem.apply_cygpath
Browse files Browse the repository at this point in the history
  • Loading branch information
dra27 authored and rjbou committed Dec 1, 2023
1 parent aa3f803 commit ddc412a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions master_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ users)
## opam-format

## opam-core
* `OpamSystem.apply_cygpath`: runs `cygpath` over the argument [#5723 @dra27 - function itself added in #3348]
5 changes: 5 additions & 0 deletions src/core/opamSystem.mli
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ val get_cygpath_function: command:string -> (string -> string) lazy_t
list, by giving the `--path` argument in the last case. *)
val get_cygpath_path_transform: (pathlist:bool -> string -> string) lazy_t

(** [apply_cygpath path] applies the `cygpath` command to [name] using
`cygpath -- name`. `cygpath` is resolved with default environment
in the function. *)
val apply_cygpath: string -> string

(** [command cmd] executes the command [cmd] in the correct OPAM
environment. *)
val command: ?verbose:bool -> ?env:string array -> ?name:string ->
Expand Down

0 comments on commit ddc412a

Please sign in to comment.