Up

module Async_shell

: sig

The functions in here are straightforward in_thread wrappers of core_extended.Shell functions.

#
module Process : sig
#
type t = Core_extended.Shell.Process.t
#
type status = [
| `Timeout of Core_extended.Std.Time.Span.t
| `Exited of int
| `Signaled of Async.Std.Signal.t
]
#
type result = Core_extended.Shell.Process.result = {
# command
: t;
# status
: status;
# stdout
: string;
# stderr
: string;
}
#
exception Failed of result
#
val status_to_string : status -> string
#
val format_failed : result -> string
end
#
type 'a with_process_flags = 'a Core_extended.Shell.with_process_flags
#
type 'a with_run_flags = 'a Core_extended.Shell.with_run_flags
#
type 'a with_test_flags = 'a Core_extended.Shell.with_test_flags
#
type 'a with_ssh_flags = 'a Core_extended.Shell.with_ssh_flags
#
type 'a cmd = 'a Core_extended.Shell.cmd
#
type ('a, 'ret) sh_cmd = ('a, 'ret) Core_extended.Shell.sh_cmd
#
val test : bool Async.Std.Deferred.t cmd with_test_flags
#
val sh_test : ('a, bool Async.Std.Deferred.t) sh_cmd with_test_flags
#
val ssh_test : ('a, bool Async.Std.Deferred.t) sh_cmd with_test_flags with_ssh_flags
#
val run : unit Async.Std.Deferred.t cmd with_run_flags
#
val run_lines : ?eol:char -> string list Async.Std.Deferred.t cmd with_run_flags
#
val run_one : ?eol:char -> string option Async.Std.Deferred.t cmd with_run_flags
#
val run_one_exn : ?eol:char -> string Async.Std.Deferred.t cmd with_run_flags
#
val run_full : string Async.Std.Deferred.t cmd with_run_flags
#
val run_full_and_error : (string * string) Async.Std.Deferred.t cmd with_run_flags
#
val run_lines_stream : string Async.Std.Stream.t cmd with_run_flags
#
val sh : ('a, unit Async.Std.Deferred.t) sh_cmd with_run_flags
#
val sh_lines : ('a, string list Async.Std.Deferred.t) sh_cmd with_run_flags
#
val sh_one : ('a, string option Async.Std.Deferred.t) sh_cmd with_run_flags
#
val sh_one_exn : ('a, string Async.Std.Deferred.t) sh_cmd with_run_flags
#
val sh_full : ('a, string Async.Std.Deferred.t) sh_cmd with_run_flags
#
val sh_lines_stream : ('a, string Async.Std.Stream.t) sh_cmd with_run_flags
#
val ssh : ('a, unit Async.Std.Deferred.t) sh_cmd with_run_flags with_ssh_flags
#
val ssh_lines : ('a, string list Async.Std.Deferred.t) sh_cmd with_run_flags with_ssh_flags
#
val ssh_full : ('a, string Async.Std.Deferred.t) sh_cmd with_run_flags with_ssh_flags
#
val ssh_one : ('a, string option Async.Std.Deferred.t) sh_cmd with_run_flags with_ssh_flags
#
val ssh_one_exn : ('a, string Async.Std.Deferred.t) sh_cmd with_run_flags with_ssh_flags
#
val ssh_lines_stream : ('a, string Async.Std.Stream.t) sh_cmd with_run_flags with_ssh_flags
Small helper commands
#
val mkdir : ?p:unit -> ?perm:int -> string -> unit Async.Std.Deferred.t
#
val scp : ?compress:bool -> ?recurse:bool -> ?user:string -> host:string -> string -> string -> unit Async.Std.Deferred.t
end