package gignore import "io" // 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 } } // WithFileWriter sets the file writer for the GignoreClient. func WithFileWriter(writer io.Writer) Option { return func(c *Client) { c.writer = writer } }