package scfg

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Module providing functions to search inside a config.

val get_dirs : string -> Types.directive list -> Types.directive list

Returns a list of directives with the provided name from a list of directives.

val get_dir : string -> Types.directive list -> Types.directive option

Returns the first directive with the provided name from a list of directive.

val get_params : int -> Types.directive -> (string list, string) result

Extract a given number of parameters from a directive.

val get_param : int -> Types.directive -> (string, string) result

Extract a parameter at a given index from a directive.

OCaml

Innovation. Community. Security.