MCPcopy Create free account
hub / github.com/dolthub/doltgresql / GetCommandDocsFolder

Function GetCommandDocsFolder

testing/generation/command_docs/download.go:101–107  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
101func 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}

Callers 3

LoadSynopsisFunction · 0.85
DownloadAllSynopsesFunction · 0.85

Calls 2

GetRootFolderFunction · 0.92
MoveRootMethod · 0.45

Tested by

no test coverage detected