X-Git-Url: https://git.hcoop.net/hcoop/domtool2.git/blobdiff_plain/31b50af0d7e9779f3b0bd3f67acfc9104512a39d..1933c5961c1a98198f7b98f33085e61090346885:/src/slave.sig diff --git a/src/slave.sig b/src/slave.sig index 86c64fd..b6c90fa 100644 --- a/src/slave.sig +++ b/src/slave.sig @@ -22,9 +22,11 @@ signature SLAVE = sig datatype file_action = Add - | Delete + | Delete of bool (* Set to true to really delete the file *) | Modify + val isDelete : file_action -> bool + type file_status = {action : file_action, domain : string, dir : string, @@ -43,6 +45,10 @@ signature SLAVE = sig val shell : string list -> bool val shellF : string list * (string -> string) -> unit + val shellOutput : string list -> string option + val run : string * string list -> bool + val runOutput : string * string list -> bool * string option + (* Like shellOutput, but return status and lines and don't use the shell *) val concatTo : (string -> bool) -> string -> unit (* Search through the result configuration hierarchy for all files matching @@ -74,6 +80,5 @@ signature SLAVE = sig val remove : ''a list * ''a -> ''a list val removeDups : ''a list -> ''a list - val copyDirCreate : { from : string, to : string } -> unit val moveDirCreate : { from : string, to : string } -> unit end