Module Ketrew_target.Command (.ml)

module Command: sig .. end
Definition of command-lines to run on a given Ketrew_host.t.

type t = {
   host : Ketrew_host.t;
   action : Ketrew_program.t;
}
The type of commands.
val shell : ?host:Ketrew_host.t -> string -> t
Create a “shell” command for a given Host.t.
val program : ?host:Ketrew_host.t -> Ketrew_program.t -> t
Create a Command.t that runs a Ketrew_program.t.
val get_host : t -> Ketrew_host.t
Get the host.
val log : t -> Ketrew_pervasives.Log.t
Get a display document.
val to_string_hum : t -> string
Get a Human-readable string.