Module Cmdliner_def.Arg_completion

Completion strategies

type 'a directive =
  1. | String of string * string
  2. | Value of 'a * string
  3. | Files
  4. | Dirs
  5. | Restart
  6. | Raw of string
val value : ?doc:string -> 'a -> 'a directive
val string : ?doc:string -> string -> 'a directive
val files : 'a directive
val dirs : 'a directive
val restart : 'a directive
val raw : string -> 'a directive
type ('ctx, 'a) func = 'ctx option -> token:string -> ('a directive list, string) Stdlib.result
type 'a complete =
  1. | Complete : 'ctx Term.t option * ('ctx, 'a) func -> 'a complete
type 'a t = 'a Arg_info.completion
val make : ?context:'ctx Term.t -> ('ctx, 'a) func -> 'a t
val complete : 'a t -> 'a complete
val complete_none : 'a t
val complete_files : 'a t
val complete_dirs : 'a t
val complete_paths : 'a t
val complete_restart : 'a t