Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdrStatusCompletion ¶
func AdrStatusCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
AdrStatusCompletion is used to autocomplete cobra command
func MarshalYAML ¶
Types ¶
type AdrData ¶
type AdrData struct { ID string `yaml:"id"` Title string `yaml:"title"` Author string `yaml:"author"` Status AdrStatus `yaml:"status"` CreationDate time.Time `yaml:"creation_date" mapstructure:"creation_date"` LastUpdateDate time.Time `yaml:"last_update_date" mapstructure:"last_update_date"` Tags Set[string] `yaml:"tags,omitempty"` Superseders Set[string] `yaml:"superseders,omitempty"` Name string `yaml:"-"` Body string `yaml:"-"` }
type AdrStatus ¶
type AdrStatus string
AdrStatus type
const ( UNKNOWN AdrStatus = "unknown" PROPOSED AdrStatus = "proposed" ACCEPTED AdrStatus = "accepted" DEPRECATED AdrStatus = "deprecated" SUPERSEDED AdrStatus = "superseded" OBSERVED AdrStatus = "observed" )
ADR status enums
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (Service) GetRecords ¶
func (Service) UpdateRecord ¶
type Set ¶
type Set[T constraints.Ordered] map[T]bool
func (Set[T]) MarshalYAML ¶
func (*Set[T]) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.