Documentation
¶
Overview ¶
Package gitignore scaffolds the project's .gitignore — most importantly the .secrets/ exclusion, so secrets fetched from Doppler are never committed.
Index ¶
Constants ¶
View Source
const FileName = ".gitignore"
FileName is the project-root ignore file this package manages.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gitignore ¶
type Gitignore struct {
// contains filtered or unexported fields
}
Gitignore scaffolds the .gitignore at a project root.
func (*Gitignore) Initialize ¶
Initialize writes a default .gitignore when the project has none, and otherwise appends any managed entry a hand-edited file is missing — so the secrets exclusion can never be lost. It reports whether the file changed.
Click to show internal directories.
Click to hide internal directories.