项目作者: YMC-GitHub

项目描述 :
some function to load lib for ymc shell lib
高级语言: Shell
项目地址: git://github.com/YMC-GitHub/sh-lib-load-lib.git
创建时间: 2020-06-23T00:40:20Z
项目社区:https://github.com/YMC-GitHub/sh-lib-load-lib

开源协议:MIT License

下载


sh lib load lib

desc

some function to load lib for ymc shell lib

deps

test

  • sh-lib-path-resolve
  • sh-lib-test
  • sh-lib-time-cost
  • sh-lib-project-dir-map

prod

  • xxx

apis

  • lib_ini
  • lib_has
  • lib_load
  • lib_require
  • lib_check
  1. cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/(.*) *{//g"

feats

  • basic curd load lib

    usage

how to use for poduction?

  1. # get the code
  2. # run the index file
  3. # ./src/index.sh
  4. # or import to your sh file
  5. # source /path/to/the/index file
  6. # simple usage
  7. lib_load "${THIS_FILE_PATH}/sh-lib-hi.sh"
  8. hi "how are you"

how to use for developer?

  1. # get the code
  2. # run test
  3. ./test/index.sh
  4. #2 get some fail test
  5. #./test/index.sh | grep "it is false"

author

yemiancheng ymc.github@gmail.com

license

MIT