-
Notifications
You must be signed in to change notification settings - Fork 415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dune exec for adverbial commands (time, afl, ...) #3171
Comments
What about specifying which argument is the command via an argument? For instance:
|
maybe a different command, as it is done in esy?
|
I agree with @Khady more generally many more things than just the binary are needed. So If you want |
I think that's useful but it seems that it's a slightly different feature. In my use case, the executables are not public for example. |
Would |
Duplicate of #2691 |
Hi,
dune exec
can be used to build an executable and run it, with optional arguments. But it's not possible to execute in a way where it's not the main command.For example there is no way to say build x.exe and run
time ./x.exe
orafl-fuzz ./x.exe @@
(I've heard the term adverbial commands becausetime
orafl-fuzz
describe "how"./x.exe
is executed).The feature itself looks straightforward but the concrete syntax is not. Let me suggest the following:
dune exec time ./x.exe
(we scan all arguments and look for things that look like executables)dune exec time %{bin:./x.exe}
(we reuse the pform from dune files)A workaround is to define an alias with a custom action based on
(run)
, but this does not work for interactive use.Thanks!
cc @let-def
The text was updated successfully, but these errors were encountered: