Skip to content

Commit 28dbce8

Browse files
committed
change flag name --spdx-license-header -> --spdx-license-headers
1 parent 2154a7b commit 28dbce8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scaffold/scaffold.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828

2929
type Config struct {
3030
Owner string `json:"owner,omitempty"`
31-
SpdxLicenseHeader bool `json:"spdxLicenseHeader"`
31+
SpdxLicenseHeaders bool `json:"spdxLicenseHeaders"`
3232
GroupName string `json:"groupName,omitempty"`
3333
GroupVersion string `json:"groupVersion,omitempty"`
3434
Kind string `json:"kind,omitempty"`
@@ -98,7 +98,7 @@ func main() {
9898

9999
pflag.BoolVar(&showVersion, "version", false, "Show version")
100100
pflag.StringVar(&config.Owner, "owner", "SAP SE", "Owner of this project, as written to the license header")
101-
pflag.BoolVar(&config.SpdxLicenseHeader, "spdx-license-header", false, "Whether to write license headers in SPDX format")
101+
pflag.BoolVar(&config.SpdxLicenseHeaders, "spdx-license-headers", false, "Whether to write license headers in SPDX format")
102102
pflag.StringVar(&config.GroupName, "group-name", "operator.kyma-project.io", "API group name")
103103
pflag.StringVar(&config.GroupVersion, "group-version", "v1alpha1", "API group version")
104104
pflag.StringVar(&config.Kind, "kind", "", "API kind for the component")

scaffold/templates/hack/boilerplate.go.txt.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .spdxLicenseHeader -}}
1+
{{- if .spdxLicenseHeaders -}}
22
/*
33
SPDX-FileCopyrightText: {{ now.Year }} {{ .owner }}
44
SPDX-License-Identifier: Apache-2.0

website/content/en/docs/usage/scaffolder.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Usage: scaffold [options] [output directory]
3030
--version Show version
3131
--owner string Owner of this project, as written to the license header
3232
(default "SAP SE")
33-
--spdx-license-header Whether to write license headers in SPDX format
33+
--spdx-license-headers Whether to write license headers in SPDX format
3434
--group-name string API group name (default "operator.kyma-project.io")
3535
--group-version string API group version (default "v1alpha1")
3636
--kind string API kind for the component

0 commit comments

Comments
 (0)