Skip to content

Commit

Permalink
chore: speed up go generate for enumer
Browse files Browse the repository at this point in the history
Enum generator github.com/dmarkham/enumer supports comma separated list of types.
Use it and speed up this process by a LOT.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
  • Loading branch information
DmitriyMV committed May 31, 2024
1 parent 4dd0aa7 commit a1684bd
Show file tree
Hide file tree
Showing 70 changed files with 3,624 additions and 3,946 deletions.
11 changes: 0 additions & 11 deletions go.work

This file was deleted.

102 changes: 0 additions & 102 deletions pkg/imager/profile/diskformat_enumer.go

This file was deleted.

106 changes: 0 additions & 106 deletions pkg/imager/profile/outformat_enumer.go

This file was deleted.

8 changes: 0 additions & 8 deletions pkg/imager/profile/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ type ISOOptions struct {
SDBootEnrollKeys SDBootEnrollKeys `yaml:"sdBootEnrollKeys"`
}

//go:generate enumer -type=OutputKind -linecomment -text

// OutputKind is output specification.
type OutputKind int

Expand All @@ -64,8 +62,6 @@ const (
OutKindCmdline // cmdline
)

//go:generate enumer -type OutFormat -linecomment -text

// OutFormat is output format specification.
type OutFormat int

Expand All @@ -79,8 +75,6 @@ const (
OutFormatZSTD // .zst
)

//go:generate enumer -type DiskFormat -linecomment -text

// DiskFormat is disk format specification.
type DiskFormat int

Expand All @@ -93,8 +87,6 @@ const (
DiskFormatOVA // ova
)

//go:generate enumer -type SDBootEnrollKeys -linecomment -text

// SDBootEnrollKeys is a value in loader.conf secure-boot-enroll: off, manual, if-safe, force.
type SDBootEnrollKeys int

Expand Down
Loading

0 comments on commit a1684bd

Please sign in to comment.