-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a command to print the path of ocamllsp and ocamlformat executabl…
…es (#11243) Signed-off-by: Sudha Parimala <sudharg247@gmail.com>
- Loading branch information
Showing
6 changed files
with
118 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
open! Import | ||
|
||
val command : unit Cmd.t | ||
module Exec : sig | ||
val command : unit Cmd.t | ||
end | ||
|
||
module Which : sig | ||
val command : unit Cmd.t | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,13 @@ | ||
open! Import | ||
|
||
(** Command to run ocamllsp, installing it if necessary *) | ||
val command : unit Cmd.t | ||
|
||
module Exec : sig | ||
val command : unit Cmd.t | ||
end | ||
|
||
(** Command to print ocamllsp's path if exists *) | ||
|
||
module Which : sig | ||
val command : unit Cmd.t | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Tests for the `dune tools which` command. | ||
|
||
The ocamlformat case: | ||
$ cat >dune-project <<EOF | ||
> (lang dune 3.11) | ||
> EOF | ||
$ dune tools which ocamlformat | ||
_build/_private/default/.dev-tool/ocamlformat/ocamlformat/target/bin/ocamlformat | ||
|
||
The ocamllsp case: | ||
$ cat >dune-project <<EOF | ||
> (lang dune 3.11) | ||
> EOF | ||
$ dune tools which ocamllsp | ||
_build/_private/default/.dev-tool/ocaml-lsp-server/ocaml-lsp-server/target/bin/ocamllsp |