Documentation ¶
Index ¶
- func GetLocalPath(projectData *project.Project, file string) string
- func Install(targetDir string) error
- func ReadFile(projectData *project.Project, file string) ([]byte, error)
- func ReadFileWithProjectData(projectData *project.Project, file string) ([]byte, error)
- func ReadOriginalFileWithProjectDataAndSave(projectData *project.Project, file string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLocalPath ¶
GetLocalPath returns the local path of the requested build asset file
func ReadFile ¶
ReadFile reads the file from the project build folder. If the file does not exist it falls back to the embedded file and the file will be written to the disk for customisation.
func ReadFileWithProjectData ¶
ReadFileWithProjectData reads the file from the project build folder and replaces ProjectInfo if necessary. If the file does not exist it falls back to the embedded file and the file will be written to the disk for customisation. The file written is the original unresolved one.
func ReadOriginalFileWithProjectDataAndSave ¶
func ReadOriginalFileWithProjectDataAndSave(projectData *project.Project, file string) ([]byte, error)
ReadOriginalFileWithProjectDataAndSave reads the file from the embedded assets and replaces ProjectInfo if necessary. It will also write the resolved final file back to the project build folder.
Types ¶
This section is empty.