package
2.1.6+incompatible
Repository: https://github.com/tonedefdev/terracreds.git
Documentation: pkg.go.dev
# Functions
CheckError processes the error.
CreateConfigFile creates a default terracreds config file if one does not exist in the specified file path.
GetBinaryPath returns the directory of the binary path.
Logging forms the path and writes to log if enabled.
LogLevel returns properly formatted log level string.
NewDirectory checks for the existence of a directory if it doesn't exist it creates it and checks for errors.
WriteConfig makes requested changes to config file.
WriteToFile will print any string of text to a file safely by checking for errors and syncing at the end.
WriteToLog will create a log if it doesn't exist and then append messages to the log.