Skip to content

Commit

Permalink
⬆️ Bump glazed
Browse files Browse the repository at this point in the history
  • Loading branch information
wesen committed Aug 14, 2023
1 parent a33a9e6 commit 58d0bd0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/gin-gonic/contrib v0.0.0-20221130124618-7e01895a63f2
github.com/gin-gonic/gin v1.9.0
github.com/go-go-golems/clay v0.0.20
github.com/go-go-golems/glazed v0.4.2
github.com/go-go-golems/glazed v0.4.4
github.com/pkg/errors v0.9.1
github.com/rs/zerolog v1.29.0
github.com/spf13/cobra v1.6.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=
github.com/go-go-golems/clay v0.0.20 h1:GRFIL1g355zWjjofmPvhPreE3AsZ8tXncu9cG2GPZMw=
github.com/go-go-golems/clay v0.0.20/go.mod h1:N9idImzYUpWLZ7eMVAymHYt0cbYO2E99MqejejZOP8A=
github.com/go-go-golems/glazed v0.4.2 h1:k9nhirR+LQzxeszVInS2/4VV8oLEnAjDQYO1BzTqea0=
github.com/go-go-golems/glazed v0.4.2/go.mod h1:HcUz88LiTEPK8cWD5pWup0rjwzIDH4loaZnMVuT4Qfc=
github.com/go-go-golems/glazed v0.4.4 h1:DQETKCfHGP7IbU1AXERkPYo6/HYgcvO5wq9fXSm6uRY=
github.com/go-go-golems/glazed v0.4.4/go.mod h1:HcUz88LiTEPK8cWD5pWup0rjwzIDH4loaZnMVuT4Qfc=
github.com/go-openapi/errors v0.20.3 h1:rz6kiC84sqNQoqrtulzaL/VERgkoCyB6WdEkc2ujzUc=
github.com/go-openapi/errors v0.20.3/go.mod h1:Z3FlZ4I8jEGxjUK+bugx3on2mIAk4txuAOhlsB1FSgk=
github.com/go-openapi/strfmt v0.21.7 h1:rspiXgNWgeUzhjo1YU01do6qsahtJNByjLVbPLNHb8k=
Expand Down
9 changes: 9 additions & 0 deletions pkg/handlers/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ type CommandDir struct {
AdditionalData map[string]interface{} `yaml:"additionalData,omitempty"`
Defaults *LayerParams `yaml:"defaults,omitempty"`
Overrides *LayerParams `yaml:"overrides,omitempty"`
BlackList *LayerFlagNames `yaml:"blackList,omitempty"`
WhiteList *LayerFlagNames `yaml:"whiteList,omitempty"`

Stream *bool `yaml:"stream,omitempty"`
}
Expand Down Expand Up @@ -275,6 +277,13 @@ func (t *Template) ExpandPaths() error {
return nil
}

type LayerFlagNames struct {
Layers []string `yaml:"layers,omitempty"`
LayerParams map[string][]string `yaml:"layerParams,omitempty"`
Flags []string `yaml:"flags,omitempty"`
Arguments []string `yaml:"arguments,omitempty"`
}

type LayerParams struct {
Layers map[string]map[string]interface{} `yaml:"layers,omitempty"`
Flags map[string]interface{} `yaml:"flags,omitempty"`
Expand Down

0 comments on commit 58d0bd0

Please sign in to comment.