File tree Expand file tree Collapse file tree 5 files changed +26
-7
lines changed
Expand file tree Collapse file tree 5 files changed +26
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ open Import
77
88 - duniverse people for "describe opam-files" *)
99
10+ let subcommands =
11+ [ Describe_workspace. command
12+ ; Describe_external_lib_deps. command
13+ ; Describe_opam_files. command
14+ ; Describe_pp. command
15+ ]
16+
17+ let make_group info =
18+ let default = Describe_workspace. term in
19+ Cmd. group ~default info subcommands
20+
1021let group =
1122 let doc = " Describe the workspace." in
1223 let man =
@@ -26,10 +37,4 @@ let group =
2637 ]
2738 in
2839 let info = Cmd. info " describe" ~doc ~man in
29- let default = Describe_workspace. term in
30- Cmd. group ~default info
31- [ Describe_workspace. command
32- ; Describe_external_lib_deps. command
33- ; Describe_opam_files. command
34- ; Describe_pp. command
35- ]
40+ make_group info
Original file line number Diff line number Diff line change 11open Import
22
3+ val make_group : Cmd .info -> unit Cmd .t
4+
5+ (* * Command group for dune describe *)
36val group : unit Cmd .t
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ let all : _ Cmdliner.Cmd.t list =
3232 [ Ocaml_cmd. group
3333 ; Coq. group
3434 ; Describe. group
35+ ; Show. group
3536 ; Rpc. group
3637 ; Internal. group
3738 ; Init. group
Original file line number Diff line number Diff line change 1+ open Import
2+
3+ let group =
4+ let doc = " Command group for showing information about the workspace" in
5+ let info = Cmd. info ~doc " show" in
6+ Describe. make_group info
Original file line number Diff line number Diff line change 1+ open Import
2+
3+ (* * Command group for dune show (alias of describe) *)
4+ val group : unit Cmd .t
You can’t perform that action at this time.
0 commit comments