Source

ocaml-pkgbuild / bashparam.mli

Full commit
type bash_param = Param of string | ParamArray of string list

val string_of_param_elem  : bash_param -> int -> string
val string_of_array_param : bash_param -> string
val string_of_param       : bash_param -> string

val assoc_str : string -> (string * bash_param) list -> string
val assoc_arr : string -> (string * bash_param) list -> string
val assoc_arr_at : string -> int -> (string * bash_param) list -> string
val assoc_arr_indices : string -> (string * bash_param) list -> string

val match_names : string -> (string * bash_param) list -> string