gitignore

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddOrUpdate added in v1.3.0

func AddOrUpdate(file string, languages ...string) error

AddOrUpdate will add the specified languages to a gitignore file or update existing entries if they are present.

func Ignore

func Ignore(languages ...string) (string, error)

Ignore will fetch a .gitignore file for the provided language(s)

func List

func List() ([]string, error)

List gets the list of supported languages available for request

Types

type ManagedFileSection added in v1.3.0

type ManagedFileSection struct {
	Prologue  string
	Languages []string
	Content   string
}

func ParseSection added in v1.3.0

func ParseSection(content string) *ManagedFileSection

func (*ManagedFileSection) String added in v1.3.0

func (h *ManagedFileSection) String() string

Jump to

Keyboard shortcuts

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