Skip to content

Commit 9a479d9

Browse files
authored
Extend meta block with additional fields (#103)
1 parent 5e41ce9 commit 9a479d9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

parser/definitions/meta.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ package definitions
33
import "github.com/blackstork-io/fabric/plugin"
44

55
type MetaBlock struct {
6-
// XXX: is empty sting enougth or use a proper ptr-nil-if-missing?
7-
Author string `hcl:"author,optional"`
8-
Tags []string `hcl:"tags,optional"`
6+
Name string `hcl:"name,optional"`
7+
Description string `hcl:"description,optional"`
8+
Url string `hcl:"url,optional"`
9+
License string `hcl:"license,optional"`
10+
Author string `hcl:"author,optional"`
11+
Tags []string `hcl:"tags,optional"`
12+
UpdatedAt string `hcl:"updated_at,optional"`
913

1014
// TODO: ?store def range defRange hcl.Range
1115
}

0 commit comments

Comments
 (0)