Up

module Shell

: sig
#
val set_defaults : ?verbose:bool -> ?echo:bool -> unit -> unit
#
val flags : unit -> ('a, 'a) Async.Std.Command.Spec.t

Offers a command line spec to set verbose and echo directly.

#
val run : ?working_dir:string -> ?quiet_or_error:bool -> string -> string list -> unit Async.Std.Deferred.Or_error.t
#
val run_lines : ?working_dir:string -> string -> string list -> string list Async.Std.Deferred.Or_error.t
#
val mkdir_p : ?perm:int -> string -> unit Async.Std.Deferred.Or_error.t
#
val getcwd : unit -> string Async.Std.Deferred.Or_error.t
#
val chmod : string -> perm:Async.Std.Unix.file_perm -> unit Async.Std.Deferred.Or_error.t
#
val temp_dir : in_dir:string -> ?prefix:string -> ?suffix:string -> unit -> string Async.Std.Deferred.Or_error.t

When this function succeed, it returns a absolute pathname.

#
val absolute_pathname : string -> string Async.Std.Deferred.Or_error.t
#
val absolute_pathnames : string list -> string list Async.Std.Deferred.Or_error.t
#
val rm : ?r:unit -> ?f:unit -> string list -> unit Async.Std.Deferred.Or_error.t
#
val rmdir : string -> unit Async.Std.Deferred.Or_error.t
#
val cp : source:string -> dest:string -> unit Async.Std.Deferred.Or_error.t
#
val readdir : string -> string array Async.Std.Deferred.Or_error.t
end