Documentation
¶
Overview ¶
Package marker implements the marker file manager: the Renovate regex-manager equivalent for arbitrary text files. A comment annotation
<comment> atmos:version <entry-name> [match=<regex-with-one-capture-group>]
marks a line (trailing comment) or the next non-blank, non-comment line (standalone comment) as carrying a managed version. The manager rewrites the version token in place from the lock. Comment delimiters are detected per language (#, //, ;, --, <!--, /*), so the annotation works across YAML, shell, Dockerfiles, Go, SQL, HTML, and more. Formats without comments (JSON) should use the template manager instead.
Index ¶
Constants ¶
const Name = "marker"
Name is the manager's registry name.
Variables ¶
var ( // ErrBadMatchExpression is returned for a match= regex that does not // compile or lacks a capture group. ErrBadMatchExpression = errUtils.ErrVersionMarkerBadMatch )
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct{}
Manager rewrites marker-annotated version tokens from the lock.
func (Manager) DefaultPaths ¶
DefaultPaths is empty: the marker manager only runs over configured paths.