config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

config holds all the required Types and Functions to work with the Changelog-Go Configuration File

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type V1

type V1 struct {
	PreRelease struct {
		// detect pre-releases or not
		Detect           bool `yaml:"detect"`
		DeletePreRelease bool `yaml:"deletePreRelease"` // if true the pre-releases would be deleted on an non pre-release
		FoldPreReleases  bool `yaml:"foldPreReleases"`
	} `yaml:"preRelease"`

	Entry struct {
		Author rune `yaml:"author"`
	} `yaml:"entry"`

	Changelog struct {
		// Changelog Path where changelog-go will save all the Entries.
		// Will be changed to a relative path after calling Check()
		EntryPath string `yaml:"entryPath"`
		Changelog string `yaml:"changelog"`
	} `yaml:"changelog"`
}

V1 represents the Config Version 1. Versioning the Config Types is to provide Backward compatibility.

func (*V1) Check

func (c *V1) Check() error

Check will test if all required Paths and files are represent and if not it will TRY to create them. If an Error occurs while creating those Files/ Dirs Check() will return the Error.

Jump to

Keyboard shortcuts

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