Versions in this module Expand all Collapse all v0 v0.2.0 Feb 7, 2026 Changes in this version + var DefaultRegistry = NewRegistry() + var ErrConfirmRequired = errors.New("confirmation required: set confirm=true to apply changes") + var ErrSlideNotFound = errors.New("slide not found") + func DetectBackend(path string) string + type ApplyOptions struct + Confirm bool + type ApplyResult struct + Applied bool + Message string + func ApplyChanges(ctx context.Context, ref model.Ref, diff *model.Diff, opts ApplyOptions) (*ApplyResult, error) + func ApplyChangesFromPath(ctx context.Context, path string, diff *model.Diff, opts ApplyOptions) (*ApplyResult, error) + type CreateOptions struct + Backend string + Path string + type CreateResult struct + Message string + Ref model.Ref + func CreateDeck(ctx context.Context, deck *model.Deck, opts CreateOptions) (*CreateResult, error) + type GetSlideResult struct + Output string + Slide *model.Slide + func GetSlide(ctx context.Context, ref model.Ref, slideID string, f format.Format) (*GetSlideResult, error) + func GetSlideFromPath(ctx context.Context, path, slideID string, f format.Format) (*GetSlideResult, error) + type ListSlidesResult struct + Output string + Slides []SlideInfo + func ListSlides(ctx context.Context, ref model.Ref, f format.Format) (*ListSlidesResult, error) + func ListSlidesFromPath(ctx context.Context, path string, f format.Format) (*ListSlidesResult, error) + type PlanOptions struct + Format format.Format + type PlanResult struct + Diff *model.Diff + Output string + func PlanChanges(ctx context.Context, ref model.Ref, desired *model.Deck, opts PlanOptions) (*PlanResult, error) + func PlanChangesFromPath(ctx context.Context, path string, desired *model.Deck, opts PlanOptions) (*PlanResult, error) + type ReadOptions struct + Format format.Format + type ReadResult struct + Deck *model.Deck + Output string + func ReadDeck(ctx context.Context, ref model.Ref, opts ReadOptions) (*ReadResult, error) + func ReadDeckFromPath(ctx context.Context, path string, opts ReadOptions) (*ReadResult, error) + type Registry struct + func NewRegistry() *Registry + func (r *Registry) Get(name string) (model.Backend, error) + func (r *Registry) List() []string + func (r *Registry) Register(name string, backend model.Backend) + type SlideInfo struct + ID string + Layout string + SectionID string + Title string + type UpdateSlideOptions struct + Confirm bool + type UpdateSlideResult struct + Message string + Updated bool + func UpdateSlide(ctx context.Context, ref model.Ref, slideID string, updates *model.Slide, ...) (*UpdateSlideResult, error)