helpers

package
v0.0.0-...-c8397f0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDirectory

func CheckDirectory(name string) (err error)

CheckDirectory will check to see if there is a directory with the same name as argument passed in. Returns an error if a directory is found.

func CopyDirectoryFS

func CopyDirectoryFS(eFileSystem embed.FS, dbms, destination string) error

CopyDirectoryFS will create a copy of the embedded file system, on the users machine for the selected DBMS.

func CreateDirectory

func CreateDirectory(name string) (err error)

CreateDirectory creates a directory that will be used for the project.

func CreateProjectTree

func CreateProjectTree(eFileSystem embed.FS, dbms, destination string, tree []fileType) error

CreateProjectTree creates the directory structure in the destination directory that matches the embed FS

func GetFSTree

func GetFSTree(eFileSystem embed.FS, source string) ([]fileType, error)

GetFSTree will create a slice of fileType that represents the file structure in the embedded filesystem.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL