Documentation ¶
Index ¶
- Constants
- func CopyAllInSrcDirToDestDir(destDirectory, srcDirectory string, copyNestedDir bool) error
- func CopyFile(destFilePath, srcFilePath string) (int64, error)
- func CopyFiles(destDirectory string, srcDirectory string) error
- func CreateDirectories(dirName string) error
- func DirectoryExists(directoryPath string) (bool, error)
- func GetBaseTemplateRootPath() (string, error)
- func GetDirectoriesAndFilePaths(templatesPath string) ([]*string, []*string, error)
- func GetProjectDirectoryName(name string) string
- func GetTemplatesRootPath(languageTemplateDirectoryName string) (string, error)
- func IgnorablePaths(path string) bool
Constants ¶
const CodeGeneratorPath = "/.compage/workdir"
CodeGeneratorPath Constant for referencing temporary directory to hold a generated project.
const SubstrString = "/"
SubstrString char to split into substrings.
const TemplateExtension = ".tmpl"
TemplateExtension template's extension.
const TemplateExtensionPattern = "/*" + TemplateExtension
TemplateExtensionPattern pattern for templates.
Variables ¶
This section is empty.
Functions ¶
func CopyAllInSrcDirToDestDir ¶
CopyAllInSrcDirToDestDir copies content of srcDirectory to destDirectory based on flag copyNestedDir
func CopyFiles ¶
CopyFiles copies only file in the srcDirectory to destDirectory, doesn't do it recursively.
func CreateDirectories ¶
CreateDirectories creates the directory specified and all other directories in the path.
func DirectoryExists ¶
func GetBaseTemplateRootPath ¶
func GetDirectoriesAndFilePaths ¶
GetDirectoriesAndFilePaths returns files and directories in given a path or error.
func GetProjectDirectoryName ¶
GetProjectDirectoryName returns tarFile parent path
func GetTemplatesRootPath ¶
GetTemplatesRootPath returns a root path of the language template passed.
func IgnorablePaths ¶
IgnorablePaths ignores a few directories.
Types ¶
This section is empty.