Skip to content

Commit b98e152

Browse files
author
norbertwagner
committed
models updated
1 parent 007cfdd commit b98e152

File tree

5 files changed

+29
-26
lines changed

5 files changed

+29
-26
lines changed

models/cnf.go

Lines changed: 0 additions & 26 deletions
This file was deleted.

models/command.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package models
2+
3+
type Command struct {
4+
Name string `json:"name"`
5+
Option string `json:"file"`
6+
Path string `json:"path"` // optional, for single file support
7+
}

models/file.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package models
2+
3+
type File struct {
4+
Name string `json:"name"`
5+
Path string `json:"path"`
6+
}

models/project.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package models
2+
3+
type Project struct {
4+
Name string `json:"name"`
5+
Arch string `json:"arch"`
6+
OS string `json:"os"`
7+
Vars []Var `json:"dev-vars"`
8+
Commands []Command `json:"commands"`
9+
Files []File `json:"files"`
10+
}

models/var.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package models
2+
3+
type Var struct {
4+
Key string `json:"key"`
5+
Value string `json:"value"`
6+
}

0 commit comments

Comments
 (0)