An open API service indexing awesome lists of open source software.

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

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