Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitignoreProvider ¶
type GitignoreProvider interface { Get(template string) (content []byte, err error) List() (templates []string, err error) }
GitignoreProvider describes the interface which provides gitignore content and information. The details are left to the implementations.
func GithubProvider ¶
func GithubProvider(owner, repo, token string, logger logger.Logger) GitignoreProvider
GithubProvider returns a gitignoreProvider, which uses the official gitignore GitHub repo, as a source for all the gitignore info/content requests.
func LocalProvider ¶
func LocalProvider(path string, logger logger.Logger) GitignoreProvider
LocalProvider returns a gitignoreProvider, which uses a local directory, as a source for all the gitignore info/content requests.
Click to show internal directories.
Click to hide internal directories.