X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=types.go;h=d8868868cd299ab9f59c437c757870fee9819992;hp=267872db82f1ef50fd452d9e05d1c8ef5db0b5cf;hb=1934f1ab83306dff45310d5b45e2a99c97e28c35;hpb=2f27353fdf81b3d0dff842a4d2e24b8963a65c6b diff --git a/types.go b/types.go index 267872d..d886886 100644 --- a/types.go +++ b/types.go @@ -53,7 +53,7 @@ type MsgSyncReq struct { Files map[string]*File Packages []string Services []string - Commands []string + Commands []*Command } type MsgSyncResp struct { FileChanges []FileChange @@ -106,6 +106,10 @@ type File struct { TriggerCommands []string } +type Command struct { + Cmd string +} + type FileChange struct { Path string Created bool