Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedExtensions = []string{
".md",
".yaml",
".yml",
".json",
".txt",
}
SupportedExtensions lists file extensions to include as input
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct {
// IsDirectory indicates if input was a directory
IsDirectory bool
// Path is the original input path (file or directory)
Path string
// Files contains all discovered input files (absolute paths)
Files []string
// PrimaryFile is the main input file (first .md file or first file)
PrimaryFile string
}
Input represents discovered input files
func Discover ¶
Discover scans the input path and returns discovered input files If path is a file, returns that single file If path is a directory, scans for supported file types
func (*Input) RelativePaths ¶
RelativePaths returns file paths relative to the input directory
Click to show internal directories.
Click to hide internal directories.