Module Command.ShapeSource

A Command_shape allows limited introspection of a Command, including subcommands, arguments, and doc strings. Think of it as machine-readable help.

Sourcemodule Anons : sig ... end
Sourcemodule Num_occurrences : sig ... end
Sourcemodule Flag_info : sig ... end
Sourcemodule Flag_help_display : sig ... end
Sourcemodule Base_info : sig ... end
Sourcemodule Group_info : sig ... end
Sourcemodule Exec_info : sig ... end
Sourcemodule Fully_forced : sig ... end

Fully forced shapes are comparable and serializable.

Sourcetype t =
  1. | Basic of Base_info.t
  2. | Group of t Group_info.t
  3. | Exec of Exec_info.t * Base.unit -> t
  4. | Lazy of t Base.Lazy.t
Sourceval fully_forced : t -> Fully_forced.t
Sourceval get_summary : t -> Base.string
Sourcemodule Sexpable : sig ... end
Sourceval help_text : [ `Use_Command_unix ]
  • deprecated [since 2021-03] Use [Command_unix]
Sourcemodule Stable : sig ... end
Sourcemodule Private : sig ... end