Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mirage_runtime: restore converters for log_threshold and allocation_policy #1482

Merged
merged 1 commit into from
Nov 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions lib_runtime/mirage/mirage_runtime.mli
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ val set_level : default:Logs.level option -> log_threshold list -> unit
sources appearing in [l] be used. *)

val logs : log_threshold list Term.t
(** [logs] is a command-liner term for setting the log_threshold. *)

(** {2 Mirage command-line converters} *)
module Conv : sig
val log_threshold : log_threshold Cmdliner.Arg.conv
(** [log_threshold] converts log reporter threshold. *)

val allocation_policy :
[ `Next_fit | `First_fit | `Best_fit ] Cmdliner.Arg.conv
(** [allocation_policy] converts allocation policy. *)
end

(** {2 OCaml runtime keys}

Expand Down