Documentation ¶
Overview ¶
Package config implements tag's config file functionality.
Tag can operate perfectly well without a config file, but it's used to specify hooks, custom commit and tag messages and to configure search and replace on version bumping for e.g. project metadata
Index ¶
Constants ¶
View Source
const Filename = ".tag.toml"
Filename is the canonical file name for tag's config file.
Variables ¶
View Source
var ErrNoConfigFile = errors.New("config file not found")
ErrNoConfigFile is the signal that no config file exists.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string `toml:"version"` Git Git `toml:"git,omitempty"` Hooks Hooks `toml:"hooks,omitempty"` Files []File `toml:"file,omitempty"` }
Config represents tags configuration settings.
type File ¶
type File struct { Path string `toml:"path,omitempty"` Search string `toml:"search,omitempty"` Replace string `toml:"-,omitempty"` // Not part of the config, inferred from `Search` }
File represents a single file tag should perform search and replace on.
Click to show internal directories.
Click to hide internal directories.