From 9a479d98f5898e046269e9571ed63cc262852531 Mon Sep 17 00:00:00 2001 From: Sergey Polzunov Date: Tue, 20 Feb 2024 19:43:42 +0100 Subject: [PATCH] Extend `meta` block with additional fields (#103) --- parser/definitions/meta.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/parser/definitions/meta.go b/parser/definitions/meta.go index aa3247e9..cb82bc60 100644 --- a/parser/definitions/meta.go +++ b/parser/definitions/meta.go @@ -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 }