Skip to content

Commit

Permalink
dockerfile: centralize "go generate" comments
Browse files Browse the repository at this point in the history
Signed-off-by: Hank Donnay <[email protected]>
  • Loading branch information
hdonnay committed Feb 7, 2024
1 parent bd091e6 commit 4782461
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
5 changes: 5 additions & 0 deletions rhel/dockerfile/generate.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package dockerfile

//go:generate -command stringer go run golang.org/x/tools/cmd/stringer
//go:generate stringer -type itemKind
//go:generate stringer -type varExpand -linecomment
3 changes: 0 additions & 3 deletions rhel/dockerfile/lex.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ type item struct {

type itemKind int

//go:generate -command stringer go run golang.org/x/tools/cmd/stringer
//go:generate stringer -type itemKind

const (
itemError itemKind = iota
itemComment
Expand Down
35 changes: 35 additions & 0 deletions rhel/dockerfile/varexpand_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4782461

Please sign in to comment.