This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
open E2e
|
||||
open Functoria
|
||||
open Cmdliner
|
||||
|
||||
let x = Impl.v ~packages:[ package "x" ] "X" job
|
||||
let y = Impl.v ~packages:[ package "y" ] "Y" job
|
||||
|
||||
let target_conv : [ `X | `Y ] Cmdliner.Arg.conv =
|
||||
Cmdliner.Arg.enum [ ("y", `Y); ("x", `X) ]
|
||||
|
||||
let target =
|
||||
let doc = Arg.info ~doc:"Target." [ "t" ] in
|
||||
let key = Key.Arg.opt target_conv `X doc in
|
||||
Key.create "target" key
|
||||
|
||||
let main = match_impl (Key.value target) ~default:y [ (`X, x) ]
|
||||
let () = register ~src:`None "noop" [ main ]
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
-t
|
||||
x
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
-t
|
||||
y
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
-t
|
||||
nonexistent
|
||||
Loading…
Add table
Add a link
Reference in a new issue