X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=types.go;h=cca638ec1c448cfe9c5511879aa93dc7519b7241;hp=267872db82f1ef50fd452d9e05d1c8ef5db0b5cf;hb=cd7436284aa538d6a8a83811a33b3a3cc32d87a3;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5 diff --git a/types.go b/types.go index 267872d..cca638e 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,11 @@ type File struct { TriggerCommands []string } +type Command struct { + OrigGroup string // group which provided this command + Cmd string +} + type FileChange struct { Path string Created bool