gignore/option.go
2025-03-10 15:21:27 +00:00

12 lines
297 B
Go

package gignore
// Option is a function that configures a GignoreClient.
type Option func(*Client)
// WithTemplateDirectory sets the template directory for the GignoreClient.
func WithTemplateDirectory(directory string) Option {
return func(c *Client) {
c.registry.Directory = directory
}
}