This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
23
unikernel/duniverse/dune_/bin/describe/describe_contexts.ml
Normal file
23
unikernel/duniverse/dune_/bin/describe/describe_contexts.ml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
open Import
|
||||
|
||||
let term =
|
||||
let+ builder = Common.Builder.term in
|
||||
let common, config = Common.init builder in
|
||||
Scheduler.go_with_rpc_server ~common ~config
|
||||
@@ fun () ->
|
||||
let open Fiber.O in
|
||||
let* setup = Import.Main.setup () in
|
||||
let+ setup = Memo.run setup in
|
||||
let ctxts =
|
||||
List.map
|
||||
~f:(fun (name, _) -> Context_name.to_string name)
|
||||
(Context_name.Map.to_list setup.scontexts)
|
||||
in
|
||||
List.iter ctxts ~f:print_endline
|
||||
;;
|
||||
|
||||
let command =
|
||||
let doc = "List the build contexts available in the workspace." in
|
||||
let info = Cmd.info ~doc "contexts" in
|
||||
Cmd.v info term
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue