loader

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDir

func LoadDir(ctx context.Context, hs *help.HelpSystem, dir string) error

LoadDir walks a local directory recursively and loads all non-README markdown files into the help store.

func LoadFile

func LoadFile(ctx context.Context, hs *help.HelpSystem, filePath string) error

LoadFile loads one markdown file from disk and upserts the parsed section.

func LoadPaths

func LoadPaths(ctx context.Context, hs *help.HelpSystem, paths []string) error

LoadPaths loads one or more markdown files or directories into the help store. Directories are walked recursively.

func ReplaceStoreWithPaths

func ReplaceStoreWithPaths(ctx context.Context, hs *help.HelpSystem, paths []string) error

ReplaceStoreWithPaths clears any preloaded sections and reloads the help store from the provided files or directories.

Types

This section is empty.

Jump to

Keyboard shortcuts

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