Skip to content

Commit

Permalink
Merge pull request #419 from luhring/build-configuration-name
Browse files Browse the repository at this point in the history
Add name method to build config
  • Loading branch information
luhring authored May 2, 2023
2 parents d19c461 + c77d183 commit 40098bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ type Configuration struct {
Options map[string]BuildOption `yaml:"options,omitempty"`
}

// Name returns a name for the configuration, using the package name.
func (cfg Configuration) Name() string {
return cfg.Package.Name
}

type VarTransforms struct {
From string `yaml:"from"`
Match string `yaml:"match"`
Expand Down

0 comments on commit 40098bf

Please sign in to comment.