Skip to content

Commit

Permalink
feat: Separate struct from map[string]T
Browse files Browse the repository at this point in the history
Signed-off-by: AlexNg <contact@ngjx.org>
  • Loading branch information
caffeine-addictt committed Sep 6, 2024
1 parent 20a33df commit 2433301
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/config/styles.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import (
"github.com/caffeine-addictt/template/cmd/utils/types"
)

type TemplateStyles map[types.CleanString]struct {
type TemplateStyles map[types.CleanString]TemplateStyle

type TemplateStyle struct {
Setup *TemplateSetup `json:"setup,omitempty"` // Paths to executable files for post-setup
Ignore *TemplateIgnore `json:"ignore,omitempty"` // The files that should be ignored when copying
Labels *TemplateLabel `json:"labels,omitempty"` // The repository labels
Expand Down

0 comments on commit 2433301

Please sign in to comment.