Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoggerService = &logger{}
LoggerService is the default logger instance
Functions ¶
func GetFilesFromGlobs ¶
GetFilesFromGlobs is a function that finds files from glob patterns
func GetUserHomeDir ¶
GetUserHomeDir returns the current user home directory
func PromptConfirmation ¶
PromptConfirmation is a function that ask for user confirmation
Types ¶
type FileProcessor ¶
type FileProcessor struct {
Files []string
}
FileProcessor is a type
func (*FileProcessor) FileExists ¶
func (p *FileProcessor) FileExists(path string) bool
FileExists is a FileProcessor method to check if a file exists
func (*FileProcessor) FileIsWritable ¶
func (p *FileProcessor) FileIsWritable(path string) bool
FileIsWritable is a FileProcessor method to check if a file is writable
func (*FileProcessor) Proceed ¶
func (p *FileProcessor) Proceed(cb func(path string))
Proceed is a FileProcessor method to call an anonymous function for each registered file
func (*FileProcessor) Register ¶
func (p *FileProcessor) Register(path string) *FileProcessor
Register is a FileProcessor method to add a file to process
Click to show internal directories.
Click to hide internal directories.