-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Suggest candidates when alias not found
Signed-off-by: Ali Caglayan <alizter@gmail.com>
- Loading branch information
Showing
4 changed files
with
48 additions
and
6 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
- Dune now suggests other aliases when an alias is not found (#7004, @Alizter) |
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,18 @@ | ||
Dune should suggest similar aliases when it cannot find one. | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.7) | ||
> EOF | ||
$ cat > dune << EOF | ||
> (rule | ||
> (alias foo) | ||
> (action | ||
> (echo "Hello, world from \"foo\"!"))) | ||
> EOF | ||
|
||
We have an alias "foo" but let's try to build something misspeled: | ||
$ dune build @fou | ||
Error: Alias "fou" specified on the command line is empty. | ||
It is not defined in . or any of its descendants. | ||
Hint: did you mean fmt or foo? | ||
[1] |
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