gitignore

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 7 Imported by: 0

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 New

func New(rootPath string) *Gitignore

func (*Gitignore) Initialize

func (g *Gitignore) Initialize() (bool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL