Desired Behavior
dune exec is an useful command for running binaries and making sure that the binaries that are run are up-to-date (thus preferable to dune build followed by _build/default/install/bin/...). However in my experience it is unnecessarily strict on what inputs it accepts when it could (in my opinion) fairly reasonably infer what the user wants to do in a number of common cases.
At the moment dune exec requires an argument. However if the project just has one (public?) executable, it would be convenient if dune exec just picked that executable automatically. My assumption here is that a lot of simple projects only have one single executable, thus this would make it easier for a lot of people as they don't need to look up and specify the executable anymore.
Example
(executable
(public_name foo))
builds and executes foo automatically.
Desired Behavior
dune execis an useful command for running binaries and making sure that the binaries that are run are up-to-date (thus preferable todune buildfollowed by_build/default/install/bin/...). However in my experience it is unnecessarily strict on what inputs it accepts when it could (in my opinion) fairly reasonably infer what the user wants to do in a number of common cases.At the moment
dune execrequires an argument. However if the project just has one (public?) executable, it would be convenient ifdune execjust picked that executable automatically. My assumption here is that a lot of simple projects only have one single executable, thus this would make it easier for a lot of people as they don't need to look up and specify the executable anymore.Example
(executable (public_name foo))$ dune execbuilds and executes
fooautomatically.