GetCommandDocsFolder returns the directory of this particular Go file: download.go. This is useful to locate relative directories, such as the synopses folder. It is assumed that this will always be called from within an IDE.
()
| 99 | // GetCommandDocsFolder returns the directory of this particular Go file: download.go. This is useful to locate relative |
| 100 | // directories, such as the synopses folder. It is assumed that this will always be called from within an IDE. |
| 101 | func GetCommandDocsFolder() (utils.RootFolderLocation, error) { |
| 102 | root, err := utils.GetRootFolder() |
| 103 | if err != nil { |
| 104 | return utils.RootFolderLocation{}, err |
| 105 | } |
| 106 | return root.MoveRoot("testing/generation/command_docs"), nil |
| 107 | } |
no test coverage detected