-
Notifications
You must be signed in to change notification settings - Fork 412
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
add dune show command (or rename dune describe?) #7784
Comments
Also: For |
@snowleopard What exactly do you want |
Right now, if a directory contains an ignored file, a source file, and a target (generated) file, I think there are possibly two issues with it. Firstly, seeing the source file in the output may be confusing: the user asked for "targets", after all. Secondly, there is currently no way to see just sources (still skipping ignored files and targets) or just targets (skipping ignored files and sources). I don't necessarily advocate for adding a new command, but the current design doesn't seem great. |
Here is an alternative design that may be an improvement:
|
I don't like the |
Are you sure the majority of Dune users considers sources to be targets? I doubt it. Perhaps we can ask them! That Dune copies sources into
Build systems (Dune including) have non-trivial logic for ignoring some source files. Having a tool to expose this behaviour can be valuable for debugging; |
@snowleopard In #8167 I change the default behaviour of |
We should add a
dune show
command that will collect together many subcommands whose jobs it is to show some information about the workspace. This should make these commands easier to use and clear up the toplevel cli.dune show targets
feature: dune show targets and dune show aliases #7770dune show aliases
feature: dune show targets and dune show aliases #7770dune show rules
(should take overdune rules
) show: print_rules now part of show command #8000dune show env
(should take overdune printenv
) feature: add dune show env and make dune printenv an alias of it #7985dune describe
, create dune show command group #7946dune show opam-files
dune show pp
dune show external-lib-deps
dune show workspace
dune show installed-libraries
show: add Installed_libraries to show #8135dune show targets (--all)
feature: --all option for dune show targets #8167Maybe the best way to go about this is to extend
dune describe
and rename it todune show
. Keeping it around as a command alias seems sensible.dune describe
also needs to be converted to command groups.The text was updated successfully, but these errors were encountered: