]> ruderich.org/simon Gitweb - safcm/safcm.git/blobdiff - types.go
safcm: use Command struct instead of string to run commands
[safcm/safcm.git] / types.go
index 267872db82f1ef50fd452d9e05d1c8ef5db0b5cf..d8868868cd299ab9f59c437c757870fee9819992 100644 (file)
--- 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