https://github.com/ymc-github/sh-lib-load-lib
some function to load lib for ymc shell lib
https://github.com/ymc-github/sh-lib-load-lib
sh-lib ymc
Last synced: 3 months ago
JSON representation
some function to load lib for ymc shell lib
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-load-lib
- Owner: YMC-GitHub
- License: mit
- Created: 2020-06-23T00:40:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-17T04:58:28.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T23:44:16.646Z (5 months ago)
- Topics: sh-lib, ymc
- Language: Shell
- Homepage:
- Size: 9.77 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 load lib
## descsome function to load lib for ymc shell lib
## deps
### test
- [x] sh-lib-path-resolve
- [x] sh-lib-test
- [x] sh-lib-time-cost
- [x] sh-lib-project-dir-map### prod
- [ ] xxx
## apis
- [x] lib_ini
- [x] lib_has
- [x] lib_load
- [x] lib_require
- [x] lib_check```sh
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/(.*) *{//g"
```## feats
- [x] basic curd load lib
## usage### 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
lib_load "${THIS_FILE_PATH}/sh-lib-hi.sh"
hi "how are you"
```### how to use for developer?
```sh
# get the code# run test
./test/index.sh
#2 get some fail test
#./test/index.sh | grep "it is false"
```## author
yemiancheng
## license
MIT