-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create an alias from pkg to package (#10858)
* feat: create an alias from pkg to package Signed-off-by: Etienne Marais <dev@maiste.fr>
- Loading branch information
Showing
4 changed files
with
32 additions
and
17 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 |
---|---|---|
@@ -1,22 +1,23 @@ | ||
open Import | ||
|
||
let info = | ||
let doc = "Experimental package management" in | ||
let man = | ||
[ `S "DESCRIPTION" | ||
; `P {|Commands for doing package management with dune|} | ||
; `Blocks Common.help_secs | ||
] | ||
in | ||
Cmd.info "pkg" ~doc ~man | ||
let man = | ||
[ `S "DESCRIPTION" | ||
; `P {|Commands for OCaml package management|} | ||
; `Blocks Common.help_secs | ||
] | ||
;; | ||
|
||
let subcommands = | ||
[ Lock.command; Print_solver_env.command; Outdated.command; Validate_lock_dir.command ] | ||
;; | ||
|
||
let group = | ||
Cmd.group | ||
info | ||
[ Lock.command | ||
; Print_solver_env.command | ||
; Outdated.command | ||
; Validate_lock_dir.command | ||
] | ||
let info name = | ||
let doc = "Experimental package management" in | ||
Cmd.info name ~doc ~man | ||
;; | ||
|
||
let group = Cmd.group (info "pkg") subcommands | ||
|
||
module Alias = struct | ||
let group = Cmd.group (info "package") subcommands | ||
end |
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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
open Import | ||
|
||
val group : unit Cmd.t | ||
|
||
module Alias : sig | ||
val group : unit Cmd.t | ||
end |
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