adr

package
v0.0.1-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ADR

type ADR struct {
	Sequence     int
	Title        string
	Context      string
	Decision     string
	Status       string
	Consequences string
}

ADR represents an Architectural Decision Record (ADR). It stores details about decisions made during software architecture design.

func (*ADR) BuildDocument

func (adr *ADR) BuildDocument(parsedTemplate *render.ParsedTemplateFile) (*io_document.IODocument, error)

BuildDocument creates an IODocument from the ADR using the provided template. It renders the ADR content into the template and returns a document that can be written to disk. Returns an error if rendering fails or if the template is invalid.

func (*ADR) SequencedTitle

func (adr *ADR) SequencedTitle() string

SequencedTitle returns the ADR's title prefixed with its sequence number. This is used for display purposes to distinguish between different ADRs.

Jump to

Keyboard shortcuts

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