https://github.com/ymc-github/sh-lib-fun
some function for handle fun for ymc shell lib
https://github.com/ymc-github/sh-lib-fun
fun sh-lib
Last synced: 7 months ago
JSON representation
some function for handle fun for ymc shell lib
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-fun
- Owner: YMC-GitHub
- License: mit
- Created: 2020-06-10T10:05:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T10:06:12.000Z (about 6 years ago)
- Last Synced: 2025-01-07T23:44:47.992Z (over 1 year ago)
- Topics: fun, sh-lib
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sh lib fun
## desc
some function for handle fun for ymc shell lib
## apis
- [x] fun_log
- [x] fun_apply
- [x] fun_call
- [x] fun_bind
## feats
- [x] basic `curd` fun
```sh
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/() *{//g"
```
## how to use for poduction?
```sh
# get the code
# run the index file
# ./src/index.sh
# or import to your sh file
# source /path/to/the/index file
# simple usage
fun_apply "str_eq" "hi hi"
fun_apply "str_eq" "hi c"
fun_bind "str_eq" "hi" "hi"
fun_bind "str_eq" "hi" "c"
```
## how to use for developer?
```sh
# get the code
# run test
./src/test.sh
#2 get some fail test
#./test.sh | grep "it is false"
```
## author
yemiancheng
## license
MIT