bootstrap

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseUUID

func ParseUUID(value string) (uuid.UUID, error)

ParseUUID converts the supplied string into a UUID, returning uuid.Nil when the input is empty.

func ParseUUIDPointer

func ParseUUIDPointer(value string) (*uuid.UUID, error)

ParseUUIDPointer returns a pointer to the parsed UUID, or nil when the value is empty.

func SplitLocales

func SplitLocales(value string) []string

SplitLocales parses a comma separated locale list into a trimmed slice.

Types

type Module

type Module struct {
	Module  *cms.Module
	Service interfaces.MarkdownService
	Logger  interfaces.Logger
}

Module wraps the cms module and the configured markdown service/logger.

func BuildModule

func BuildModule(opts Options) (*Module, error)

BuildModule constructs a CMS module configured for markdown operations.

type Options

type Options struct {
	ContentDir          string
	Pattern             string
	Recursive           bool
	LocalePatterns      map[string]string
	DefaultLocale       string
	Locales             []string
	TranslationsEnabled *bool
	RequireTranslations *bool
	LoggerProvider      interfaces.LoggerProvider
}

Options captures configuration for markdown CLI bootstraps.

Jump to

Keyboard shortcuts

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