-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove packages and keys from "Mirage.register" / "Functoria.register"
see #1433
- Loading branch information
Showing
14 changed files
with
28 additions
and
51 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
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
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,10 +1,9 @@ | ||
open Functoria | ||
open E2e | ||
|
||
let main = main "App.Make" (job @-> job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] "noop" [ main $ noop ] | ||
let main = main ~keys:[ Key.v key ] "App.Make" (job @-> job) | ||
let () = register "noop" [ main $ noop ] |
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,10 +1,9 @@ | ||
open F0 | ||
open Functoria | ||
|
||
let main = Functoria.(main "App" job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] ~src:`None "noop" [ main ] | ||
let main = Functoria.main ~keys:[ Key.v key ] "App" job | ||
let () = register ~src:`None "noop" [ main ] |
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,10 +1,11 @@ | ||
open F0 | ||
open Functoria | ||
|
||
let main = Functoria.(main ~extra_deps:[ dep (app_info ()) ] "App" job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] ~src:`None "noop" [ main ] | ||
let main = | ||
Functoria.main ~keys:[ Key.v key ] ~extra_deps:[ dep (app_info ()) ] "App" job | ||
|
||
let () = register ~src:`None "noop" [ main ] |
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,9 +1,8 @@ | ||
open Mirage | ||
|
||
let main = main "App" (job @-> job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] "noop" [ main $ noop ] | ||
let main = main ~keys:[ Key.v key ] "App" (job @-> job) | ||
let () = register "noop" [ main $ noop ] |
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,13 +1,8 @@ | ||
open Mirage | ||
|
||
let main = main "App" job | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = | ||
register | ||
~keys:[ Key.v key ] | ||
~src:`None "noop" | ||
[ if_impl Key.is_solo5 main main ] | ||
let main = main ~keys:[ Key.v key ] "App" job | ||
let () = register ~src:`None "noop" [ if_impl Key.is_solo5 main main ] |
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,9 +1,8 @@ | ||
open Mirage | ||
|
||
let main = main "App" job | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] ~src:`None "noop" [ main ] | ||
let main = main ~keys:[ Key.v key ] "App" job | ||
let () = register ~src:`None "noop" [ main ] |
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,9 +1,8 @@ | ||
open Mirage | ||
|
||
let main = main "App" (job @-> job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = register ~keys:[ Key.v key ] ~src:`None "noop" [ main $ noop ] | ||
let main = main ~keys:[ Key.v key ] "App" (job @-> job) | ||
let () = register ~src:`None "noop" [ main $ noop ] |
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,10 +1,8 @@ | ||
open Mirage | ||
|
||
let main = main "App" (job @-> job) | ||
|
||
let key = | ||
let doc = Key.Arg.info ~doc:"How to say hello." [ "hello" ] in | ||
Key.(create "hello" Arg.(opt string "Hello World!" doc)) | ||
|
||
let () = | ||
register ~keys:[ Key.v key ] ~src:`None "noop-functor.v0" [ main $ noop ] | ||
let main = main ~keys:[ Key.v key ] "App" (job @-> job) | ||
let () = register ~src:`None "noop-functor.v0" [ main $ noop ] |