composer require marcmascort/bash-helpers
npm install mmb-bash-helpers
Usage is very simply, you only need import helpers file.
source path/to/helpers
success <message>
warning <message>
error <message>
highlight <message>
text <message>
title <message>
yell <message>
try <command>
die <message>
make_executable <path/to/fileOrFolder>
make_writable <path/to/fileOrFolder>
make_readable <path/to/fileOrFolder>
make_chmod <modes> <path/to/fileOrFolder>
make_mkdir <path/to/fileOrFolder>
make_mv <path/to/source/fileOrFolder> <path/to/target/fileOrFolder>
make_cp <path/to/source/fileOrFolder> <path/to/target/fileOrFolder>
make_rm <path/to/fileOrFolder>
str_replace <search> <replace> <subject>
lib/cert-generate <hostname> <folder> <openssl_config_file>
lib/docker-machine-port-forwarder <port> [-h] [-s] [-f] [-e] [-hp]
lib/manage-etc-hosts add <hostname> [<ip>]
lib/manage-etc-hosts remove <hostname> [<ip>]
lib/manage-git clone <repository> <folder> [<branch>]
lib/manage-git submodule <arguments>