hgraca/bash-overlay
最新稳定版本:v0.2.3
Composer 安装命令:
composer require hgraca/bash-overlay
包简介
A bash library with utility functions.
README 文档
README
A library of domain agnostic Bash functions, with clear names, which can be reused across projects as if they were part of Bash itself.
Hopefully, this will make it simpler to create new Bash scripts, and it will make them more readable.
How to use
You can install this library in your project, using composer.
Once you have composer installed in your system, you can run composer install,
which will install all dependencies and generate the autoloader in vendor/autoload.sh.
Include the file vendor/autoload.sh in your script, and you are good to go.
Ex:
#!/usr/bin/env bash
. "./vendor/autoload.sh" # Make sure the path is correct
if os.is_ubuntu; then
echo "Is Ubuntu!"
elif os.is_alpine; then
echo "Is Alpine!"
else
echo "Unknown distribution"
fi
Running the tests
You can run the tests by running composer test.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-30