]> git.lizzy.rs Git - micro.git/blob - cmd/micro/help.go
Fix some issues with unicode handling
[micro.git] / cmd / micro / help.go
1 package main
2
3 var helpPages map[string]string
4
5 var helpFiles = []string{
6         "help",
7         "keybindings",
8         "plugins",
9         "colors",
10         "options",
11         "commands",
12 }
13
14 // LoadHelp loads the help text from inside the binary
15 func LoadHelp() {
16         helpPages = make(map[string]string)
17         for _, file := range helpFiles {
18                 data, err := Asset("runtime/help/" + file + ".md")
19                 if err != nil {
20                         TermMessage("Unable to load help text", file)
21                 }
22                 helpPages[file] = string(data)
23         }
24 }