https://github.com/ymc-github/sh-lib-var-fun
some function for handle var for ymc shell lib
https://github.com/ymc-github/sh-lib-var-fun
fun sh-lib var ymc
Last synced: 3 months ago
JSON representation
some function for handle var for ymc shell lib
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-var-fun
- Owner: YMC-GitHub
- License: mit
- Created: 2020-06-10T09:41:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-10T09:42:54.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T23:43:21.965Z (5 months ago)
- Topics: fun, sh-lib, var, ymc
- 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 var-fun
## desc
some function for handle var for ymc shell lib
## apis
- [x] var_has
- [x] var_set
- [x] var_get
- [x] var_del## feats
- [x] basic `curd` var
```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
var_has "ymc"
var_set "ymc"
var_del "ymc"
```## 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