parser

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractMarkdownContent

func ExtractMarkdownContent(content []byte) (string, error)

ExtractMarkdownContent extracts the content of a markdown file without frontmatter

func ParseCommand

func ParseCommand(fs util.FileSystem, path string) (*model.Command, error)

ParseCommand parses a command definition from a file

func ParseCommandFromContent

func ParseCommandFromContent(path string, contentBytes []byte) (*model.Command, error)

ParseCommandFromContent parses a command definition from provided content

func ParseCommands

func ParseCommands(fs util.FileSystem, dir string) ([]model.Command, error)

ParseCommands parses all command files in a directory

func ParseMarkdownFile

func ParseMarkdownFile(fs util.FileSystem, path string) (string, error)

ParseMarkdownFile parses a markdown file and returns its content without frontmatter

Types

This section is empty.

Jump to

Keyboard shortcuts

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