X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=types.go;h=cca638ec1c448cfe9c5511879aa93dc7519b7241;hb=c82fb9a1ad0301b1f5465944df05ee01937e6e3f;hp=267872db82f1ef50fd452d9e05d1c8ef5db0b5cf;hpb=f2f2bc47e8729548f3c10117f7f008b547c4afc5;p=safcm%2Fsafcm.git 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