marcmascort/bash-helpers
Composer 安装命令:
composer require marcmascort/bash-helpers
包简介
Bash helpers
README 文档
README
Installation
Composer
composer require marcmascort/bash-helpers
NPM
npm install mmb-bash-helpers
Functions
Usage is very simply, you only need import helpers file.
source path/to/helpers
Display
success <message> warning <message> error <message> highlight <message> text <message> title <message> yell <message>
Execution
try <command> die <message>
Files
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>
Strings
str_replace <search> <replace> <subject>
Libraries
Certificate generator
lib/cert-generate <hostname> <folder> <openssl_config_file>
Docker machine port forwarder
lib/docker-machine-port-forwarder <port> [-h] [-s] [-f] [-e] [-hp]
Manage /etc/hosts
lib/manage-etc-hosts add <hostname> [<ip>] lib/manage-etc-hosts remove <hostname> [<ip>]
Manage git
lib/manage-git clone <repository> <folder> [<branch>] lib/manage-git submodule <arguments>
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-08