Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dim0x69 committed Oct 22, 2024
1 parent 80dfc20 commit 3f96e46
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ func errorExit(format string, args ...interface{}) {
os.Exit(1)
}

/*
getMarkdownFilePaths returns a list of markdown files to load commands from.
The order of precedence is:
1. The file flag
2. The MDX_FILE_DIR environment variable
3. The MDX_FILE_PATH environment variable
4. The current working directory
*/
func getMarkdownFilePaths(fileFlag string) []string {
var mdFiles []string
if fileFlag != "" {
Expand Down

0 comments on commit 3f96e46

Please sign in to comment.