ExtensionAllPath returns paths of all extension files
()
| 65 | |
| 66 | // ExtensionAllPath returns paths of all extension files |
| 67 | func ExtensionAllPath() (string, error) { |
| 68 | exts := featureSection.Key("extensions").Strings("|") |
| 69 | results := []string{} |
| 70 | for _, v := range exts { |
| 71 | path, err := utils.GetExtensionPath(v) |
| 72 | if err != nil { |
| 73 | path = utils.Red("Extension " + v + " not found") |
| 74 | } |
| 75 | results = append(results, path) |
| 76 | } |
| 77 | |
| 78 | return strings.Join(results, "\n"), nil |
| 79 | } |
| 80 | |
| 81 | // AppPath return path of app directory |
| 82 | func AppPath(name string) (string, error) { |
no test coverage detected