Skip to content

Commit

Permalink
Extend meta block with additional fields (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
traut authored Feb 20, 2024
1 parent 5e41ce9 commit 9a479d9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions parser/definitions/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ package definitions
import "github.com/blackstork-io/fabric/plugin"

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

// TODO: ?store def range defRange hcl.Range
}
Expand Down

0 comments on commit 9a479d9

Please sign in to comment.