Documentation ¶
Index ¶
- func CreateFile(path, name, content string) error
- func FindCurrentFolder() (wd string, hasErr bool)
- func FindEntryPointPath() (string, bool)
- func FindFilePath(root, fileName string, excludeNames []string) (string, error)
- func Install(path ...string) error
- func OverwriteToFile(filePath, content string) error
- type FindError
- type FindErrorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCurrentFolder ¶
FindCurrentFolder where command will be executed
func FindEntryPointPath ¶
FindEntryPointPath where main file and DI file located
func FindFilePath ¶
FindFilePath looks for fileName in root and all it's subdirectories, returns path of fileName if found.
func OverwriteToFile ¶ added in v0.2.1
OverwriteToFile ...
Types ¶
type FindError ¶
type FindError struct { FindErrorType // Err message Err error }
FindError is an error type specific for search
type FindErrorType ¶
type FindErrorType byte
FindErrorType code
const ( FindErrorFileGeneral FindErrorType = iota FindErrorFileNotFound FindErrorFileDuplicate )
Click to show internal directories.
Click to hide internal directories.